mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #391] RenewAccessToken throwing AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext #247
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#247
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sheetal-hemrom on GitHub (Jul 7, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/391
Description:
AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
while calling renewAccessToken.
The authorize is successful and I save the refreshToken from credentials in my UserDefaults.
OAuth Provider (Twitter, Github, ..):
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
@phimage commented on GitHub (Jul 7, 2017):
you remove "OAuth Provider" from issue template
the main information I need to help you
Did you try to connect to a server that use spring?
@sheetal-hemrom commented on GitHub (Jul 7, 2017):
@phimage Hi Eric I have bind an application hosted on PCF with their SSO service instance.
@phimage commented on GitHub (Jul 7, 2017):
Hi, the normal authentification work well? or only renew failed?
I found in spring (java) the message
AbstractSecurityInterceptor.authenticationNotFound=An Authentication object was not found in the SecurityContextmaybe some configuration must be done in server
I don`t think this is an OauthSwift issue
@sheetal-hemrom commented on GitHub (Jul 7, 2017):
Hi. The normal authentication (authorize) do work and so I am able to receive token and refresh token at first place. But while renewing if I receive the issue which exactly does the same flow just different POST parameters (as I debugged) . I think it should not be a PCF issue but OAuth might be following different configuration for authorize and renew calls
@sheetal-hemrom commented on GitHub (Jul 7, 2017):
I will also check with my server if that is the case
@sheetal-hemrom commented on GitHub (Jul 7, 2017):
@phimage So I found out that renew works after sometime and not when I just log in . While I was trying renew I was trying to renew just under the completion block of authorize. When I saved the refresh token for later and hit renew it worked. It might be a PivotalCloudFoundary issue but I got a hint in this answer here