Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

GraphAPI GetAccessTokenFromRefreshToken missing parameter #18

@kennyvv

Description

@kennyvv

I was trying to use the GraphAPI and AuthenticateUsingRefreshToken, however i get the following exception.

KoenZomers.OneDrive.Api.Exceptions.TokenRetrievalFailedException: Failed to retrieve OneDrive access token. Additional information: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: ae843ab5-b298-4ff5-bd4e-7f52660a2300 Correlation ID: 8ce4b213-b349-47b2-8fc6-a21928a18c8b Timestamp: 2019-03-06 12:58:00Z at KoenZomers.OneDrive.Api.OneDriveApi.PostToTokenEndPoint(QueryStringBuilder queryBuilder) at KoenZomers.OneDrive.Api.OneDriveGraphApi.GetAccessTokenFromRefreshToken(String refreshToken, String[] scopes) at KoenZomers.OneDrive.Api.OneDriveGraphApi.GetAccessTokenFromRefreshToken(String refreshToken) at KoenZomers.OneDrive.Api.OneDriveApi.AuthenticateUsingRefreshToken(String refreshToken) --- End of inner exception stack trace ---

I thought i might have to set the client secret, however i can't set the property.
What is the issue here?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions