mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 22:42:15 +08:00
add login prompt
This commit is contained in:
parent
e5f63c60e9
commit
e261e04978
@ -131,7 +131,7 @@ func RunLogin() (ticketId string, openapiToken, webapiToken *config.PanClientTok
|
|||||||
loginUrl := &strings.Builder{}
|
loginUrl := &strings.Builder{}
|
||||||
fmt.Fprintf(loginUrl, "https://openapi.alipan.com/oauth/authorize?client_id=%s&redirect_uri=https%%3A%%2F%%2Fapi.tickstep.com%%2Fauth%%2Ftickstep%%2Faliyunpan%%2Ftoken%%2Fopenapi%%2F%s%%2Fauth&scope=user:base,file:all:read,file:all:write",
|
fmt.Fprintf(loginUrl, "https://openapi.alipan.com/oauth/authorize?client_id=%s&redirect_uri=https%%3A%%2F%%2Fapi.tickstep.com%%2Fauth%%2Ftickstep%%2Faliyunpan%%2Ftoken%%2Fopenapi%%2F%s%%2Fauth&scope=user:base,file:all:read,file:all:write",
|
||||||
config.Config.ClientId, ticketId)
|
config.Config.ClientId, ticketId)
|
||||||
fmt.Printf("请在浏览器打开以下链接进行扫码登录,链接有效时间为5分钟\n%s\n\n", loginUrl)
|
fmt.Printf("请在浏览器打开以下链接进行登录,链接有效时间为5分钟。\n注意:你需要进行一次授权一次扫码的两次登录。\n%s\n\n", loginUrl)
|
||||||
|
|
||||||
// handler waiting
|
// handler waiting
|
||||||
line := cmdliner.NewLiner()
|
line := cmdliner.NewLiner()
|
||||||
|
Loading…
Reference in New Issue
Block a user