Searched refs:refreshToken (Results 1 - 25 of 47) sorted by relevance

12

/forgerock/openam-v13/openam-rest/src/main/java/org/forgerock/openam/rest/audit/
H A DOAuth2AuditRefreshTokenContextProvider.java104 RefreshToken refreshToken = retrieveRefreshTokenFromChallengeResponse(request);
105 if (refreshToken != null) {
106 userId = getUserIdFromToken(refreshToken);
115 RefreshToken refreshToken = retrieveRefreshTokenFromRequest(request);
116 if (refreshToken != null) {
117 userId = getUserIdFromToken(refreshToken);
126 RefreshToken refreshToken = retrieveRefreshTokenFromChallengeResponse(request);
127 if (refreshToken != null) {
128 trackingId = getTrackingIdFromToken(refreshToken);
137 RefreshToken refreshToken
[all...]
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/main/java/org/forgerock/oauth2/core/
H A DGrantTypeAccessTokenGenerator.java41 RefreshToken refreshToken = null;
43 refreshToken = tokenStore.createRefreshToken(grantType, clientId,
48 authorizationCode, resourceOwnerId, clientId, redirectUri, scope, refreshToken, nonce, validatedClaims,
51 if (refreshToken != null) {
52 accessToken.addExtraData(OAuth2Constants.Params.REFRESH_TOKEN, refreshToken.getTokenId());
H A DAccessTokenServiceImpl.java98 public AccessToken refreshToken(OAuth2Request request) throws InvalidClientException, InvalidRequestException, method in class:AccessTokenServiceImpl
110 final RefreshToken refreshToken = tokenStore.readRefreshToken(request, tokenId);
112 if (refreshToken == null) {
117 if (!refreshToken.getClientId().equalsIgnoreCase(clientRegistration.getClientId())) {
122 if (refreshToken.isExpired()) {
123 logger.warn("Refresh Token is expired for id: " + refreshToken.getTokenId());
131 if (refreshToken.getScope() != null) {
132 tokenScope = new TreeSet<String>(refreshToken.getScope());
142 refreshToken.getStringProperty(OAuth2Constants.Custom.CLAIMS));
147 refreshToken
[all...]
H A DPasswordCredentialsGrantTypeHandler.java97 RefreshToken refreshToken = null;
99 refreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
105 refreshToken, null, validatedClaims, request);
107 if (refreshToken != null) {
108 accessToken.addExtraData(REFRESH_TOKEN, refreshToken.getTokenId());
H A DAccessTokenService.java82 AccessToken refreshToken(OAuth2Request request) throws InvalidClientException, InvalidRequestException, method in interface:AccessTokenService
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DAccessTokenService.java136 public AccessToken refreshToken(OAuth2Request request) throws InvalidClientException, InvalidRequestException, method in class:AccessTokenService
149 final RefreshToken refreshToken = tokenStore.readRefreshToken(request, tokenId);
151 if (refreshToken == null) {
156 AuditRequestContext.putProperty(OAUTH2_GRANT.toString(), refreshToken.getAuditTrackingId());
158 if (!refreshToken.getClientId().equalsIgnoreCase(clientRegistration.getClientId())) {
163 if (refreshToken.isExpired()) {
164 logger.warn("Refresh Token is expired for id: " + refreshToken.getTokenId());
172 if (refreshToken.getScope() != null) {
173 tokenScope = new TreeSet<String>(refreshToken.getScope());
182 final String validatedClaims = providerSettings.validateRequestedClaims(refreshToken
[all...]
H A DGrantTypeAccessTokenGenerator.java67 RefreshToken refreshToken = null;
69 refreshToken = tokenStore.createRefreshToken(grantType, clientId,
74 authorizationCode, resourceOwnerId, clientId, redirectUri, scope, refreshToken, nonce, validatedClaims,
77 if (refreshToken != null) {
78 accessToken.addExtraData(OAuth2Constants.Params.REFRESH_TOKEN, refreshToken.toString());
H A DPasswordCredentialsGrantTypeHandler.java101 RefreshToken refreshToken = null;
103 refreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
109 refreshToken, null, validatedClaims, request, resourceOwner.getAuthTime());
111 if (refreshToken != null) {
112 accessToken.addExtraData(REFRESH_TOKEN, refreshToken.toString());
H A DStatefulAccessToken.java103 * @param refreshToken The refresh token.
113 String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken,
116 this(id, authorizationCode, resourceOwnerId, clientId, redirectUri, scope, expiryTime, refreshToken,
131 * @param refreshToken The refresh token.
142 String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken,
153 if (refreshToken != null) {
154 setRefreshTokenId(refreshToken.getTokenId());
155 setAuthGrantId(refreshToken.getAuthGrantId());
112 StatefulAccessToken(String id, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken, String tokenName, String grantType, String nonce, String realm, String claims, String auditTrackingId, JsonValue confirmationKey) argument
141 StatefulAccessToken(String id, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken, String tokenName, String grantType, String nonce, String realm, String claims, String auditTrackingId, long authTime, JsonValue confirmationKey) argument
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/test/java/org/forgerock/oauth2/core/
H A DAccessTokenServiceImplTest.java110 accessTokenService.refreshToken(request);
125 accessTokenService.refreshToken(request);
137 RefreshToken refreshToken = null;
142 given(tokenStore.readRefreshToken(request, "REFRESH_TOKEN_ID")).willReturn(refreshToken);
145 accessTokenService.refreshToken(request);
157 RefreshToken refreshToken = mock(RefreshToken.class);
162 given(tokenStore.readRefreshToken(request, "REFRESH_TOKEN_ID")).willReturn(refreshToken);
163 given(refreshToken.getClientId()).willReturn("CLIENT_ID");
167 accessTokenService.refreshToken(request);
179 RefreshToken refreshToken
[all...]
H A DTokenResponseTypeHandlerTest.java58 RefreshToken refreshToken = null;
64 redirectUri, scope, refreshToken, nonce, claims, request)).willReturn(accessToken);
/forgerock/openam/openam-oauth2/src/test/java/org/forgerock/oauth2/core/
H A DAccessTokenServiceTest.java117 accessTokenService.refreshToken(request);
132 accessTokenService.refreshToken(request);
144 RefreshToken refreshToken = null;
149 given(tokenStore.readRefreshToken(request, "REFRESH_TOKEN_ID")).willReturn(refreshToken);
152 accessTokenService.refreshToken(request);
164 RefreshToken refreshToken = mock(RefreshToken.class);
169 given(tokenStore.readRefreshToken(request, "REFRESH_TOKEN_ID")).willReturn(refreshToken);
170 given(refreshToken.getClientId()).willReturn("CLIENT_ID");
174 accessTokenService.refreshToken(request);
186 RefreshToken refreshToken
[all...]
H A DStatefulAccessTokenTest.java91 RefreshToken refreshToken = null;
101 refreshToken, tokenName, grantType, nonce, realm, claims, auditTrackingId, confirmationKey);
/forgerock/openidm-v4/openidm-ui/openidm-ui-admin/src/main/js/org/forgerock/openidm/ui/admin/connector/oauth/
H A DGoogleTypeView.js57 connectorDetails.configurationProperties.refreshToken = refeshDetails.refresh_token;
H A DSalesforceTypeView.js83 connectorDetails.configurationProperties.refreshToken = refeshDetails.refresh_token;
86 connectorDetails.configurationProperties.refreshToken = null;
/forgerock/openam-v13/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/user/oauth2/
H A DTokensView.js135 if (tokenInfo.refreshToken) {
136 output += "<tr><td>" + $.t("templates.oauth.refreshToken") + "</td><td>" +
137 tokenInfo.refreshToken + "</td></tr>";
/forgerock/opendj2/src/server/org/opends/server/core/
H A DGroupManager.java95 private volatile long refreshToken = 0; field in class:GroupManager
663 refreshToken++;
766 refreshToken++;
876 refreshToken++;
1028 refreshToken++;
1078 return token != this.refreshToken;
1087 public long refreshToken() { method in class:GroupManager
1088 return this.refreshToken;
/forgerock/opendj2-hg/src/server/org/opends/server/core/
H A DGroupManager.java95 private volatile long refreshToken = 0; field in class:GroupManager
663 refreshToken++;
766 refreshToken++;
876 refreshToken++;
1028 refreshToken++;
1078 return token != this.refreshToken;
1087 public long refreshToken() { method in class:GroupManager
1088 return this.refreshToken;
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/core/
H A DGroupManager.java116 private volatile long refreshToken; field in class:GroupManager
650 refreshToken++;
758 refreshToken++;
850 refreshToken++;
1002 refreshToken++;
1049 return token != this.refreshToken;
1058 public long refreshToken() { method in class:GroupManager
1059 return this.refreshToken;
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DStatefulTokenStore.java512 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
515 redirectUri, scope, refreshToken, nonce, claims, request,
524 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
549 clientId, redirectUri, scope, expiryTime, refreshToken, OAuth2Constants.Token.OAUTH_ACCESS_TOKEN,
652 StatefulRefreshToken refreshToken = new StatefulRefreshToken(id, resourceOwnerId, clientId, redirectUri, scope,
657 refreshToken.setClaims(validatedClaims);
661 tokenStore.create(refreshToken);
663 String[] obs = {"CREATED_REFRESH_TOKEN", refreshToken.toString()};
668 String[] obs = {"FAILED_CREATE_REFRESH_TOKEN", refreshToken.toString()};
671 logger.error("Unable to create refresh token: " + refreshToken
510 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
522 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
[all...]
H A DStatelessTokenStore.java149 resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken,
152 redirectUri, scope, refreshToken, nonce, claims, request,
158 resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken,
194 .claim(AUTH_GRANT_ID, refreshToken != null ? refreshToken.getAuthGrantId() : UUID.randomUUID().toString())
460 StatelessRefreshToken refreshToken = new StatelessRefreshToken(jwt, jwt.build());
461 request.setToken(RefreshToken.class, refreshToken);
462 createStatelessTokenMetadata(jwtId, expiryTime, refreshToken);
463 return refreshToken;
590 StatelessRefreshToken refreshToken
148 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
157 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
[all...]
H A DOpenAMTokenStore.java87 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
90 clientId, redirectUri, scope, refreshToken, nonce, claims, request,
97 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
101 clientId, redirectUri, scope, refreshToken, nonce, claims, request, authTime);
104 clientId, redirectUri, scope, refreshToken, nonce, claims, request, authTime);
85 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
95 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
/forgerock/openam/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/user/oauth2/
H A DTokensView.js138 if (tokenInfo.refreshToken) {
139 output += `<tr><td>${$.t("templates.oauth.refreshToken")}</td><td>${
140 tokenInfo.refreshToken
/forgerock/openidm-v4/openidm-zip/src/main/resources/samples/scriptedazure/tools/shared/
H A DAzureADOAuth2HttpClientFactory.groovy104 public AzureADOAuth2HttpClientFactory(final String authority, final String refreshToken) {
106 token = new ObjectNode(null, [refresh_token: new TextNode(refreshToken)])
107 this.refreshToken(httpClient)
142 refreshToken(httpClient);
168 return !Objects.equals(token.get("access_token").asText(), getAccessTokenFromRequest(request)) || refreshToken(httpClient);
336 protected boolean refreshToken(final HttpClient client) throws OAuth2Exception {
/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMTokenStore.java474 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
493 if (refreshToken == null) {
499 scope, expiryTime, refreshToken.getTokenId(), OAuth2Constants.Token.OAUTH_ACCESS_TOKEN, grantType,
565 OpenAMRefreshToken refreshToken = new OpenAMRefreshToken(id, resourceOwnerId, clientId, redirectUri, scope,
570 refreshToken.setClaims(validatedClaims);
574 tokenStore.create(refreshToken);
576 String[] obs = {"CREATED_REFRESH_TOKEN", refreshToken.toString()};
581 String[] obs = {"FAILED_CREATE_REFRESH_TOKEN", refreshToken.toString()};
584 logger.error("Unable to create refresh token: " + refreshToken.getTokenInfo(), e);
588 request.setToken(RefreshToken.class, refreshToken);
472 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
[all...]

Completed in 2164 milliseconds

12