Skip to content

Instantly share code, notes, and snippets.

Created November 18, 2020 21:33
What would you like to do?
Simple Spring Access Token Tool
public class TokenViewerApplication {
public static void main(String[] args) {, args);
static class TokenController {
String showToken(@RegisteredOAuth2AuthorizedClient("okta") OAuth2AuthorizedClient client) {
return "export TOKEN='" + client.getAccessToken().getTokenValue() + "'";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment