Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information regarding Authentication to the readme. #38

Open
brokenprogrammer opened this issue Feb 12, 2021 · 0 comments
Open

Add information regarding Authentication to the readme. #38

brokenprogrammer opened this issue Feb 12, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@brokenprogrammer
Copy link
Contributor

brokenprogrammer commented Feb 12, 2021

When authenticating towards the fortnox api you first get an authorization code which you then have to turn into an access token before you can use the api.

We have support for this within the SDK but it is not yet documented within our readme.

The service: AuthorizationService.cs have a method called GetAccessTokenAsync which is pretty self explanatory.
Example usage:

var accessToken = (await AuthorizationService.GetAccessTokenAsync(authorizationCode, clientSecret)).Authorization.AccessToken;
@brokenprogrammer brokenprogrammer added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant