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 Jun 10, 2019
1 parent 1b8fd79 commit d5e8f6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/OIDServiceConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,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 d5e8f6a

Please sign in to comment.