This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seelix.api.service; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import org.apache.commons.lang3.RandomStringUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seelix.api.service.dto; | |
import java.time.Instant; | |
import java.util.ArrayList; | |
import java.util.Set; | |
import java.util.stream.Collectors; | |
import javax.validation.constraints.Email; | |
import javax.validation.constraints.NotBlank; | |
import javax.validation.constraints.Pattern; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seelix.api.config; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import com.auth0.client.auth.AuthAPI; | |
import com.auth0.client.mgmt.ManagementAPI; | |
import com.auth0.exception.Auth0Exception; | |
import com.auth0.json.auth.TokenHolder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seelix.api.config; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
/** | |
* Properties specific to Seelix. | |
* <p> | |
* Properties are configured in the application.yml file. See | |
* {@link io.github.jhipster.config.JHipsterProperties} for a good example. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { connect } from 'react-redux'; | |
import { Redirect } from 'react-router-dom'; | |
import { IRootState } from 'app/shared/reducers'; | |
import { logout } from 'app/shared/reducers/authentication'; | |
import Auth0 from 'app/config/auth0'; | |
export interface ILogoutProps extends StateProps, DispatchProps { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { connect } from 'react-redux'; | |
import { RouteComponentProps } from 'react-router-dom'; | |
import { Storage } from 'react-jhipster'; | |
import { IRootState } from 'app/shared/reducers'; | |
import { getSession } from 'app/shared/reducers/authentication'; | |
import Auth0 from 'app/config/auth0'; | |
export interface ILoginProps extends StateProps, DispatchProps, RouteComponentProps<{}> { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Auth0Lock from 'auth0-lock'; | |
export default class Auth { | |
lock = new Auth0Lock( | |
'MVmsdXMGSS2JusuH82DeNAErxtoTmmir', | |
'seelix.eu.auth0.com', | |
{ | |
auth: | |
{ | |
audience: 'https://seelix-api.com', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seelix.api.security.jwt; | |
import java.io.IOException; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; | |
import javax.servlet.http.HttpServletRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seelix.api.security.jwt; | |
import java.security.interfaces.RSAPublicKey; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import javax.annotation.PostConstruct; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seelix.api.config; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
/** | |
* Properties specific to Seelix. | |
* <p> | |
* Properties are configured in the application.yml file. | |
* See {@link io.github.jhipster.config.JHipsterProperties} for a good example. | |
*/ |