gitlab static method
Implementation
static DVOAuth2Config gitlab({
required String clientId,
required Uri redirectUri,
String? clientSecret,
Uri? host,
List<String> scopes = const <String>['read_user'],
}) {
final base = host ?? Uri.https('gitlab.com');
return DVOAuth2Config(
clientId: clientId,
clientSecret: clientSecret,
redirectUri: redirectUri,
scopes: scopes,
authorizationEndpoint: base.replace(path: '/oauth/authorize'),
tokenEndpoint: base.replace(path: '/oauth/token'),
userInfoEndpoint: base.replace(path: '/api/v4/user'),
);
}