remove pdbs

This commit is contained in:
Cayo Puigdefabregas 2023-08-10 16:43:03 +02:00
parent db706503fc
commit 9c2f22c77a
1 changed files with 0 additions and 3 deletions

View File

@ -79,7 +79,6 @@ class AuthorizeView(GenericMixin):
if not form.consent.data: if not form.consent.data:
return redirect(url_for('core.user-profile')) return redirect(url_for('core.user-profile'))
# import pdb; pdb.set_trace()
return authorization.create_authorization_response(grant_user=g.user) return authorization.create_authorization_response(grant_user=g.user)
try: try:
@ -148,7 +147,6 @@ class AllowCodeView(GenericMixin):
discovery = {} discovery = {}
def dispatch_request(self): def dispatch_request(self):
# import pdb.set_trace()
self.code = request.args.get('code') self.code = request.args.get('code')
self.oidc = session.get('oidc') self.oidc = session.get('oidc')
if not self.code or not self.oidc: if not self.code or not self.oidc:
@ -184,7 +182,6 @@ class AllowCodeView(GenericMixin):
return self.discovery return self.discovery
def get_token(self): def get_token(self):
data = {'grant_type': 'authorization_code', 'code': self.code} data = {'grant_type': 'authorization_code', 'code': self.code}
url = self.member.domain + '/oauth/token' url = self.member.domain + '/oauth/token'
url = self.get_discovery().get('token_endpoint', url) url = self.get_discovery().get('token_endpoint', url)