Skip to content

Commit eef4846

Browse files
committed
Add setting for scope
1 parent 97c6ee8 commit eef4846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_pyoidc/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse:
158158
request.session["oidc_login_next"] = next_redirect_uri
159159

160160
sid, location = client.consumer.begin( # type: ignore[no-untyped-call] # oic package is untyped
161-
scope=["openid"],
161+
scope=self.get_setting("scope", ["openid"]),
162162
response_type="code",
163163
use_nonce=True,
164164
path=self.request.build_absolute_uri("/"),

0 commit comments

Comments
 (0)