openid / openid/AppAuth-iOS

OIDRegistrationRequest - Client metadata invalid error

Open
#314 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.