providers/oauth2: add more info to configuration modal
This commit is contained in:
parent
ddca46e24a
commit
5a3c1137ab
|
@ -293,6 +293,7 @@ class OAuth2Provider(Provider):
|
||||||
"providers/oauth2/setup_url_modal.html",
|
"providers/oauth2/setup_url_modal.html",
|
||||||
{
|
{
|
||||||
"provider": self,
|
"provider": self,
|
||||||
|
"issuer": self.get_issuer(request),
|
||||||
"authorize": request.build_absolute_uri(
|
"authorize": request.build_absolute_uri(
|
||||||
reverse("passbook_providers_oauth2:authorize",)
|
reverse("passbook_providers_oauth2:authorize",)
|
||||||
),
|
),
|
||||||
|
@ -339,7 +340,6 @@ class BaseGrantModel(models.Model):
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-many-instance-attributes
|
|
||||||
class AuthorizationCode(ExpiringModel, BaseGrantModel):
|
class AuthorizationCode(ExpiringModel, BaseGrantModel):
|
||||||
"""OAuth2 Authorization Code"""
|
"""OAuth2 Authorization Code"""
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ class AuthorizationCode(ExpiringModel, BaseGrantModel):
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
# plyint: disable=too-many-instance-attributes
|
# pylint: disable=too-many-instance-attributes
|
||||||
class IDToken:
|
class IDToken:
|
||||||
"""The primary extension that OpenID Connect makes to OAuth 2.0 to enable End-Users to be
|
"""The primary extension that OpenID Connect makes to OAuth 2.0 to enable End-Users to be
|
||||||
Authenticated is the ID Token data structure. The ID Token is a security token that contains
|
Authenticated is the ID Token data structure. The ID Token is a security token that contains
|
||||||
|
|
|
@ -13,6 +13,19 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-c-modal-box__body" id="modal-description">
|
<div class="pf-c-modal-box__body" id="modal-description">
|
||||||
<form class="pf-c-form">
|
<form class="pf-c-form">
|
||||||
|
<div class="pf-c-form__group">
|
||||||
|
<label class="pf-c-form__label" for="help-text-simple-form-name">
|
||||||
|
<span class="pf-c-form__label-text">{% trans 'OpenID Configuration URL' %}</span>
|
||||||
|
</label>
|
||||||
|
<input class="pf-c-form-control" readonly type="text" value="{{ provider_info }}" />
|
||||||
|
</div>
|
||||||
|
<div class="pf-c-form__group">
|
||||||
|
<label class="pf-c-form__label" for="help-text-simple-form-name">
|
||||||
|
<span class="pf-c-form__label-text">{% trans 'OpenID Configuration Issuer' %}</span>
|
||||||
|
</label>
|
||||||
|
<input class="pf-c-form-control" readonly type="text" value="{{ issuer }}" />
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
<div class="pf-c-form__group">
|
<div class="pf-c-form__group">
|
||||||
<label class="pf-c-form__label" for="help-text-simple-form-name">
|
<label class="pf-c-form__label" for="help-text-simple-form-name">
|
||||||
<span class="pf-c-form__label-text">{% trans 'Authorize URL' %}</span>
|
<span class="pf-c-form__label-text">{% trans 'Authorize URL' %}</span>
|
||||||
|
@ -31,13 +44,6 @@
|
||||||
</label>
|
</label>
|
||||||
<input class="pf-c-form-control" readonly type="text" value="{{ userinfo }}" />
|
<input class="pf-c-form-control" readonly type="text" value="{{ userinfo }}" />
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<div class="pf-c-form__group">
|
|
||||||
<label class="pf-c-form__label" for="help-text-simple-form-name">
|
|
||||||
<span class="pf-c-form__label-text">{% trans 'OpenID Configuration URL' %}</span>
|
|
||||||
</label>
|
|
||||||
<input class="pf-c-form-control" readonly type="text" value="{{ provider_info }}" />
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<footer class="pf-c-modal-box__footer pf-m-align-left">
|
<footer class="pf-c-modal-box__footer pf-m-align-left">
|
||||||
|
|
Reference in New Issue