openid / openid/AppAuth-iOS

IOS Logout Crash : The service configuration is missing an end_session_endpoint.

Open
#806 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triage
Dominant language
Objective-C
Stars
2k
Forks
867
Avg merge
4d 48m
Merged PRs (30d)
1

Description

Hi Guys,

I crash while trying to logout :

*** Assertion failure in -[OIDEndSessionRequest endSessionRequestURL], OIDEndSessionRequest.m:184

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The service configuration is missing an end_session_endpoint.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000180437330 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180051274 objc_exception_throw + 56
2 Foundation 0x0000000180ae29b4 _userInfoForFileAndLine + 0
3 ....

My Request:

let authorizationEndpoint = URL(string: Constants.ApiGa.authorizationEndpoint)!
let tokenEndpoint = URL(string: Constants.ApiGa.tokenEndpoint)!
let configuration = OIDServiceConfiguration(authorizationEndpoint: authorizationEndpoint,
tokenEndpoint: tokenEndpoint)

    var redirectURL = redirectURL = Constants.OIDAuthorization.redirectURL
    var idToken = "" idToken = KeyChain.getKeychainValue(value: "my_idToken")
    
    let request = OIDEndSessionRequest(configuration: configuration,
                                                idTokenHint: idToken,
                                                postLogoutRedirectURL: URL(string: redirectURL)!,
                                                additionalParameters: nil)

Please Help :/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with OIDEndSessionRequest.m at the reported assertion in endSessionRequestURL, then trace how OIDServiceConfiguration is created in the logout example. Reproduce the logout flow using the configuration shown and compare the required service metadata with the request inputs. Done means the crash is resolved or the missing provider configuration is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
authentication, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.