How can I show Login screen forcefully?
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 2k
- Forks
- 867
- Avg merge
- 4d 48m
- Merged PRs (30d)
- 1
Description
I am new on AppAuth. I tried to logout but didn't find specific way to logout.
When I tried to clear my userDefault data but can't come login screen, it take previous from cookies. I tried to add prompt but couldn't able to achieve.
Here is my login code
`
let request = OIDAuthorizationRequest(configuration: config,
clientId: clientId,
clientSecret: clientSecret,
scopes: [OIDScopeOpenID, "offline"],
redirectURL: redirectURL,
responseType: OIDResponseTypeCode,
additionalParameters: ["prompt": "login"])
currentAuthFlow = OIDAuthState.authState(
byPresenting: request,
presenting: vc,
callback: { (authState, error) in
if let authState = authState {
print(authState)
onSuccess(authState)
} else if let error = error {
print(error)
onError(error)
}
})
`
Can anybody help me to resolve this issue please?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named. Start with the OIDAuthorizationRequest call shown and review AppAuth-iOS authentication and session APIs alongside the provider's cookie behavior. Done means identifying whether AppAuth can force reauthentication and documenting the supported logout or session-reset path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- authentication, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 20/100