@@ -35,19 +35,6 @@ def logout_by_session(self, id):
3535 return self .client .call ('delete' , path , {
3636 }, params )
3737
38- def oauth_callback (self , project_id , provider , code , state = '' ):
39- """OAuth Callback"""
40-
41- params = {}
42- path = '/auth/oauth/callback/{provider}/{projectId}'
43- path .replace ('{projectId}' , project_id )
44- path .replace ('{provider}' , provider )
45- params ['code' ] = code
46- params ['state' ] = state
47-
48- return self .client .call ('get' , path , {
49- }, params )
50-
5138 def oauth (self , provider , success = '' , failure = '' ):
5239 """OAuth Login"""
5340
@@ -60,13 +47,13 @@ def oauth(self, provider, success='', failure=''):
6047 return self .client .call ('get' , path , {
6148 }, params )
6249
63- def recovery (self , email , redirect ):
50+ def recovery (self , email , reset ):
6451 """Password Recovery"""
6552
6653 params = {}
6754 path = '/auth/recovery'
6855 params ['email' ] = email
69- params ['redirect ' ] = redirect
56+ params ['reset ' ] = reset
7057
7158 return self .client .call ('post' , path , {
7259 }, params )
@@ -84,14 +71,14 @@ def recovery_reset(self, user_id, token, password_a, password_b):
8471 return self .client .call ('put' , path , {
8572 }, params )
8673
87- def register (self , email , password , redirect , success , failure , name = '' ):
74+ def register (self , email , password , confirm , success = '' , failure = '' , name = '' ):
8875 """Register User"""
8976
9077 params = {}
9178 path = '/auth/register'
9279 params ['email' ] = email
9380 params ['password' ] = password
94- params ['redirect ' ] = redirect
81+ params ['confirm ' ] = confirm
9582 params ['success' ] = success
9683 params ['failure' ] = failure
9784 params ['name' ] = name
@@ -110,12 +97,12 @@ def confirm(self, user_id, token):
11097 return self .client .call ('post' , path , {
11198 }, params )
11299
113- def confirm_resend (self , redirect ):
100+ def confirm_resend (self , confirm ):
114101 """Resend Confirmation"""
115102
116103 params = {}
117104 path = '/auth/register/confirm/resend'
118- params ['redirect ' ] = redirect
105+ params ['confirm ' ] = confirm
119106
120107 return self .client .call ('post' , path , {
121108 }, params )
0 commit comments