SSOを起動して実行しようとしています。したがって、別のアプリケーション(同じauth0ドメイン上)にサインインしてアプリケーションのログインページに移動すると、アプリケーションが自動的にログインするようになります。Java Spring MVC Auth0 SSOがトークンを取得しない(Spring Bootなし)
最初の部分を実行して、 auth0の認証コード。しかし、私がトークンを取得しようとすると、それらはすべてnullです。
私のredirectuUriとclientSecretは正しいです。以前に返された認証コードも正しいと思います。
リクエストがトークンを返さないようです。それらはすべてnullです。
どこが間違っているか調べ始めるにはどうすればよいですか?ありがとう!
public Tokens getTokens(final String authorizationCode, final String redirectUri) {
Validate.notNull(authorizationCode);
Validate.notNull(redirectUri);
System.out.println("Sending request with code to retrieve tokens.");
final Credentials creds = authenticationAPIClient
.token(authorizationCode, redirectUri)
.setClientSecret(clientSecret).execute();
return new Tokens(creds.getIdToken(), creds.getAccessToken(), creds.getType(), creds.getRefreshToken());
}
今すぐ短い答えを投稿してください。まだ分かりませんがコメントを残してください。 – arcseldon