Skip to content

OIDRegistrationRequest - Client metadata invalid error #314

Open
@alexionut

Description

@alexionut

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions