OIDRegistrationRequest - Client metadata invalid error
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 2k
- Forks
- 867
- Avg merge
- 4d 48m
- Merged PRs (30d)
- 1
Description
Hello,
I have AppAuth implemented in an IOS project. Everything works fine.
But I tried to use OIDRegistrationRequest, based on the example provided in https://github.com/openid/AppAuth-iOS/blob/master/Examples/Example-iOS_ObjC/Source/AppAuthExampleViewController.m, and i am getting "Client metadata invalid" error.
The code used is:
OIDRegistrationRequest *request =
[[OIDRegistrationRequest alloc] initWithConfiguration:configuration
redirectURIs:@[ redirectURI ]
responseTypes:@["code"]
grantTypes:nil
subjectType:nil
tokenEndpointAuthMethod:@""
additionalParameters:nil];
[OIDAuthorizationService performRegistrationRequest:request
completion:^(OIDRegistrationResponse *_Nullable regResp, NSError *_Nullable error) {
}];
I am not sure what tokenEndpointAuthMethod should be, documentation isn't helpful and i tried all endpoints
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the OIDRegistrationRequest usage in Examples/Example-iOS_ObjC/Source/AppAuthExampleViewController.m and the initializer shown in the issue. Check how tokenEndpointAuthMethod is defined and what the OAuth provider requires; the provider is not identified, so reproduction may require that missing context. Done means establishing a provider-valid registration request without the “Client metadata invalid” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100