Closed KrishnaPG closed 1 year ago
@Steve0x2a @seriouszyx @Abingcbc @ComradeProgrammer
Hi @KrishnaPG
It has to take grant type into account and construct the appropriate URL for all other relevant Grant Types too.
How to do this? Can you be more specific?
Also, there should be a way to retrieve the configured grant types from the CASDoor Server for a given application. (Or better yet, automatically build the URL from one of the configured grant types for the application by talking to the casdoor server)
You can use the GetApplication()
API: https://door.casdoor.com/swagger/#/Application%20API/ApiController.GetApplication
@Shivansh-yadav13 @leo220yuyaodog
Closed as resolved
The implementation of
getSigninUrl()
currently is hardcoded for Authorization Code Grant Typehttps://github.com/casdoor/casdoor-js-sdk/blob/72d558769d5cfd7d97ea9d2b77c2027b4f0c2b54/src/sdk.ts#L58-L63