You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# JHipster commonly also accepts/needs the client_id in the body; include if required:
836
+
# client_id: "web_app",
837
+
)
838
+
839
+
puts access.token
840
+
puts access.to_hash # full token response
841
+
```
842
+
843
+
Notes:
844
+
- Resource Owner Password Credentials (ROPC) is deprecated in OAuth 2.1 and discouraged. Prefer Authorization Code + PKCE.
845
+
- If your deployment strictly demands the X-XSRF-TOKEN header, first fetch it from an endpoint that sets the XSRF-TOKEN cookie (often "/" or a login page) and pass it to headers.
846
+
- For Basic auth, auth_scheme: :basic_auth handles the Authorization header; you do not need to base64-encode manually.
847
+
848
+
</details>
849
+
801
850
### Refresh Tokens
802
851
803
852
When the server issues a refresh_token, you can refresh manually or implement an auto-refresh wrapper.
0 commit comments