forked from Github-Mirrors/canaille
fixed introspection access rights
This commit is contained in:
parent
94a2c36cef
commit
e2e024e8f2
1 changed files with 1 additions and 3 deletions
|
@ -250,10 +250,8 @@ class IntrospectionEndpoint(_IntrospectionEndpoint):
|
|||
tok = Token.filter(oauthRefreshToken=token)
|
||||
if tok:
|
||||
tok = tok[0]
|
||||
if tok.oauthClient == client.dn:
|
||||
if client.dn in tok.oauthAudience:
|
||||
return tok
|
||||
# if has_introspect_permission(client):
|
||||
# return tok
|
||||
|
||||
def introspect_token(self, token):
|
||||
client_id = Client.get(token.oauthClient).oauthClientID
|
||||
|
|
Loading…
Reference in a new issue