mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
Improve OAuth params.
This commit is contained in:
@ -82,9 +82,12 @@ export function getOAuthGetParameters(params) {
|
||||
const redirectUri = queries.get("redirect_uri");
|
||||
const scope = queries.get("scope");
|
||||
const state = queries.get("state");
|
||||
if (clientId === undefined) {
|
||||
|
||||
if (clientId === undefined || clientId === null) {
|
||||
// login
|
||||
return null;
|
||||
} else {
|
||||
// code
|
||||
return {
|
||||
clientId: clientId,
|
||||
responseType: responseType,
|
||||
|
Reference in New Issue
Block a user