File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 29
29
class TokenWrapper :
30
30
def __init__ (
31
31
self ,
32
- iam_url = 'https://services.humanbrainproject .eu/oidc ' ,
32
+ iam_url = 'https://iam.ebrains .eu/auth/realms/hbp/protocol/openid-connect ' ,
33
33
client_id = None ,
34
34
client_secret = None ,
35
35
refresh_token = None ):
@@ -60,8 +60,7 @@ def _get_new_token(self):
60
60
url ,
61
61
headers = {'content-type' : 'application/x-www-form-urlencoded' },
62
62
data = {
63
- 'grant_type' : 'refresh_token' ,
64
- 'refresh_token' : self .refresh_token ,
63
+ 'grant_type' : 'client_credentials' ,
65
64
'client_id' : self .client_id ,
66
65
'client_secret' : self .client_secret
67
66
})
@@ -102,7 +101,6 @@ def get_token(self):
102
101
103
102
return self .access_token
104
103
105
-
106
104
token_wrapper = TokenWrapper (
107
105
client_id = _client_id ,
108
106
client_secret = _client_secret ,
You can’t perform that action at this time.
0 commit comments