9a2f0aa356
Signed-off-by: dab246 <tdvu@linagora.com>
21 lines
497 B
Dart
21 lines
497 B
Dart
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
class OIDCRequest with EquatableMixin {
|
|
|
|
final String baseUrl;
|
|
final String resourceUrl;
|
|
static const String relUrl = 'http://openid.net/specs/connect/1.0/issuer';
|
|
|
|
OIDCRequest({required this.baseUrl, required this.resourceUrl});
|
|
|
|
factory OIDCRequest.fromUri(Uri uri) {
|
|
return OIDCRequest(
|
|
baseUrl: uri.toString(),
|
|
resourceUrl: uri.origin,
|
|
);
|
|
}
|
|
|
|
@override
|
|
List<Object?> get props => [baseUrl, resourceUrl, relUrl];
|
|
} |