mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-29 12:15:43 +03:00
clearer %no-token error message
This commit is contained in:
parent
47eac6dbc7
commit
8441d6668f
@ -150,6 +150,10 @@
|
|||||||
::
|
::
|
||||||
++ token-exchange (post-quay exchange-url ~)
|
++ token-exchange (post-quay exchange-url ~)
|
||||||
++ token-request (post-quay token-reqs-url oauth-callback+oauth-callback ~)
|
++ token-request (post-quay token-reqs-url oauth-callback+oauth-callback ~)
|
||||||
|
++ identity
|
||||||
|
%+ weld
|
||||||
|
?~(usr "default identity for " "{(trip usr)}@")
|
||||||
|
(trip (join '.' (flop dom)))
|
||||||
::
|
::
|
||||||
:: use token to sign authorization header. requires:
|
:: use token to sign authorization header. requires:
|
||||||
:: ++ res (res-handle-reqt handle-token) :: take request token
|
:: ++ res (res-handle-reqt handle-token) :: take request token
|
||||||
@ -169,7 +173,10 @@
|
|||||||
?. ?=({{$'oauth_token' oauth-token/@t} {$'oauth_verifier' @t} $~} a)
|
?. ?=({{$'oauth_token' oauth-token/@t} {$'oauth_verifier' @t} $~} a)
|
||||||
~|(no-token+a !!)
|
~|(no-token+a !!)
|
||||||
?~ tok
|
?~ tok
|
||||||
~|(%no-secret-for-token !!)
|
%+ mean-wall %no-secret-for-token
|
||||||
|
"""
|
||||||
|
Attempting to authorize {identity}
|
||||||
|
"""
|
||||||
?. =(oauth-token.tok oauth-token.q.i.a)
|
?. =(oauth-token.tok oauth-token.q.i.a)
|
||||||
~| wrong-token+[id=usr q.i.a]
|
~| wrong-token+[id=usr q.i.a]
|
||||||
~|(%multiple-tokens-unsupported !!)
|
~|(%multiple-tokens-unsupported !!)
|
||||||
|
Loading…
Reference in New Issue
Block a user