Skip to content

Conversation

@ja-caperwhite
Copy link

This commit is related to this issue: #667, which we also ran into.

The problem was that OIDAuthorizationService's performTokenRequest still dispatched a lot of callbacks on the main dispatch queue, which in turn caused a deadlock for us when calling OIDAuthState's performAction.

This change allows setting a queue for OIDAuthState to use when calling performTokenRequest.

This change does not make OIDAuthState thread safe.
The default behaviour stays as is, expecting the user to use the main thread.
If a queue is specified, all method calls on the OIDAuthState then also need to be dispatched from that queue to avoid potential threading issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant