Files
workavia-mail-front/model/lib/oidc/response/oidc_discovery_response.dart
T
dab246 b1b2bb90a5 TF-2384 Handle refresh token when token expired in NSE
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit c8a39bb42792770c001ac90d6301d53126225d95)
2024-01-08 14:25:26 +01:00

26 lines
865 B
Dart

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 {
@JsonKey(name: 'authorization_endpoint')
final String? authorizationEndpoint;
@JsonKey(name: 'token_endpoint')
final String? tokenEndpoint;
@JsonKey(name: 'end_session_endpoint')
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];
}