Skip to content

Commit

Permalink
Add the end session endpoint to -description and -encodeWithCoder:, s…
Browse files Browse the repository at this point in the history
…ynthesize the endSessionEndpoint property for consistency
  • Loading branch information
mattio authored and WilliamDenniss committed Oct 18, 2018
1 parent 229f6d6 commit 80d9956
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/OIDServiceConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ @implementation OIDServiceConfiguration
@synthesize issuer = _issuer;
@synthesize registrationEndpoint = _registrationEndpoint;
@synthesize discoveryDocument = _discoveryDocument;
@synthesize endSessionEndpoint = _endSessionEndpoint;

- (instancetype)init
OID_UNAVAILABLE_USE_INITIALIZER(@selector(
Expand Down Expand Up @@ -208,17 +209,19 @@ - (void)encodeWithCoder:(NSCoder *)aCoder {
[aCoder encodeObject:_issuer forKey:kIssuerKey];
[aCoder encodeObject:_registrationEndpoint forKey:kRegistrationEndpointKey];
[aCoder encodeObject:_discoveryDocument forKey:kDiscoveryDocumentKey];
[aCoder encodeObject:_endSessionEndpoint forKey:kEndSessionEndpointKey];
}

#pragma mark - description

- (NSString *)description {
return [NSString stringWithFormat:
@"OIDServiceConfiguration authorizationEndpoint: %@, tokenEndpoint: %@, "
"registrationEndpoint: %@, discoveryDocument: [%@]",
"registrationEndpoint: %@, endSessionEndpoint: %@, discoveryDocument: [%@]",
_authorizationEndpoint,
_tokenEndpoint,
_registrationEndpoint,
_endSessionEndpoint,
_discoveryDocument];
}

Expand Down

0 comments on commit 80d9956

Please sign in to comment.