File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -132,13 +132,13 @@ Uri generateSignInUri(
132
132
133
133
Uri generateSignOutUri ({
134
134
required String endSessionEndpoint,
135
- required String idToken ,
135
+ required String clientId ,
136
136
Uri ? postLogoutRedirectUri,
137
137
}) {
138
138
var signOutUri = Uri .parse (endSessionEndpoint);
139
139
140
140
return addQueryParameters (signOutUri, {
141
- 'id_token_hint ' : idToken ,
141
+ 'client_id ' : clientId ,
142
142
'post_logout_redirect_uri' : postLogoutRedirectUri? .toString ()
143
143
});
144
144
}
Original file line number Diff line number Diff line change @@ -53,17 +53,17 @@ void main() {
53
53
54
54
test ('Generate SignOut Uri' , () {
55
55
const String endSessionEndpoint = 'https://foo.com' ;
56
- const String idToken = 'foo_id_token ' ;
56
+ const String clientId = 'foo_client ' ;
57
57
const String postLogoutRedirectUri = 'http://foo.app.io' ;
58
58
59
59
var signOutUri = logto_core.generateSignOutUri (
60
60
endSessionEndpoint: endSessionEndpoint,
61
- idToken : idToken ,
61
+ clientId : clientId ,
62
62
postLogoutRedirectUri: Uri .parse (postLogoutRedirectUri));
63
63
64
64
expect (signOutUri.scheme, 'https' );
65
65
expect (signOutUri.host, 'foo.com' );
66
- expect (signOutUri.queryParameters, containsPair ('id_token_hint ' , idToken ));
66
+ expect (signOutUri.queryParameters, containsPair ('client_id ' , clientId ));
67
67
expect (signOutUri.queryParameters,
68
68
containsPair ('post_logout_redirect_uri' , postLogoutRedirectUri));
69
69
});
You can’t perform that action at this time.
0 commit comments