[SLO] Add OIDCDiscovery object
(cherry picked from commit 69fa48d9138ee4c555e88e49970619dfa9c561ce)
This commit is contained in:
@@ -67,6 +67,7 @@ export 'oidc/oidc_configuration.dart';
|
||||
export 'oidc/request/oidc_request.dart';
|
||||
export 'oidc/response/oidc_link_dto.dart';
|
||||
// OIDC
|
||||
export 'oidc/response/oidc_discovery_response.dart';
|
||||
export 'oidc/response/oidc_response.dart';
|
||||
export 'oidc/token.dart';
|
||||
export 'oidc/token_id.dart';
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'oidc_discovery_response.g.dart';
|
||||
|
||||
@JsonSerializable(explicitToJson: true, includeIfNull: false)
|
||||
class OIDCDiscoveryResponse with EquatableMixin {
|
||||
|
||||
final String? authorizationEndpoint;
|
||||
final String? tokenEndpoint;
|
||||
final String? endSessionEndpoint;
|
||||
|
||||
OIDCDiscoveryResponse(this.authorizationEndpoint, this.tokenEndpoint, this.endSessionEndpoint);
|
||||
|
||||
factory OIDCDiscoveryResponse.fromJson(Map<String, dynamic> json) => _$OIDCDiscoveryResponseFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$OIDCDiscoveryResponseToJson(this);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [authorizationEndpoint, tokenEndpoint, endSessionEndpoint];
|
||||
}
|
||||
Reference in New Issue
Block a user