mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 19:39:25 +08:00
fix: improve oauth2 field
This commit is contained in:
@@ -197,7 +197,9 @@ Future<HttpRequestModel> handleAuth(
|
||||
secret: oauth2.clientSecret,
|
||||
authorizationEndpoint: Uri.parse(oauth2.authorizationUrl),
|
||||
redirectUrl: Uri.parse(
|
||||
oauth2.redirectUrl ?? "apidash://oauth2/callback",
|
||||
oauth2.redirectUrl!.isEmpty
|
||||
? "apidash://oauth2/callback"
|
||||
: oauth2.redirectUrl!,
|
||||
),
|
||||
tokenEndpoint: Uri.parse(oauth2.accessTokenUrl),
|
||||
credentialsFile: credentialsFile,
|
||||
|
||||
Reference in New Issue
Block a user