mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Added offline_access scope to SSO builder so SDK can refresh token
This commit is contained in:
parent
a557875ce8
commit
8303b356da
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,10 @@ class SingleSignOnViewModel : GenericViewModel() {
|
|||
Uri.parse(REDIRECT_URI) // the redirect URI to which the auth response is sent
|
||||
)
|
||||
|
||||
// Needed for SDK to be able to refresh the token, otherwise it will return
|
||||
// an invalid grant error with description "Session not active"
|
||||
authRequestBuilder.setScopes("offline_access")
|
||||
|
||||
if (username.isNotEmpty()) {
|
||||
authRequestBuilder.setLoginHint(username)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue