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

Document new OAuth changes for 4.3.0 #1445

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ThisIsMissEm
Copy link
Contributor

@ThisIsMissEm ThisIsMissEm commented May 15, 2024

This branch is based on #1444

@ThisIsMissEm
Copy link
Contributor Author

I have noticed that there is some churn here due to my editor using Prettier for markdown documents. We may want to consider adopting prettier for this repository.


{{< hint style="warning" >}}
Treat the `code` query parameter as if it were a password, you should ensure that it is not logged in request logs.
{{< /hint >}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This displays as follows: Screenshot 2024-05-15 at 20 26 06


- See [/api/v1/endorsements]({{< relref "methods/endorsements" >}}) for managing a user profile's featured accounts.
- See [/api/v1/featured_tags]({{< relref "methods/featured_tags" >}}) for managing a user profile's featured hashtags.
- See [/api/v1/preferences]({{< relref "methods/preferences" >}}) for reading user preferences.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all accidental churn due to prettier.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would potentially be useful here to run prettier in separate branch/PR, get that merged first, rebase this, etc.

Treat the `access_token` as if it were a password. We recommend you encrypt this value when storing in your cache, to prevent accidental credential exposure.
{{< /hint >}}

To use it in requests, add the HTTP header `Authorization: Bearer <access_token>` to any API call that requires OAuth (i.e., one that is not publicly accessible).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe slightly out of scope of this PR, but may be useful to a do a once-over for consistent usage of this placeholder value. You are using <access_token> here (which makes complete sense to me). In an example below there's a place that uses "our_access_token_here" for example. Maybe there are more differences elsewhere. Would be nice for consistency to align them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think out of scope for now

ThisIsMissEm and others added 4 commits May 16, 2024 00:46
Co-authored-by: Matt Jankowski <matt@jankowski.online>
Co-authored-by: Matt Jankowski <matt@jankowski.online>
Co-authored-by: Matt Jankowski <matt@jankowski.online>
Co-authored-by: Matt Jankowski <matt@jankowski.online>
@ThisIsMissEm ThisIsMissEm mentioned this pull request May 17, 2024
73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants