Update sso.rs

This commit is contained in:
Eugene Pankov 2022-10-29 20:51:45 +02:00
parent 14ca1bc0c6
commit 0c3567b300
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -41,6 +41,10 @@ impl SsoClient {
)
.set_redirect_uri(Cow::Owned(redirect_url.clone()));
for (k, v) in self.config.extra_parameters() {
auth_req = auth_req.add_extra_param(k, v);
}
for scope in self.config.scopes() {
auth_req = auth_req.add_scope(Scope::new(scope.to_string()));
}