Eternal Personal Access Token

Hi.
I need to obtain the new token for the backup purposes.
So, I’m just need the “eternal” token, not the token for 90 days because it’s to small amount of time for me.
Is there anything what I may do to obtain such token?

I’ve done this through code before by connecting directly to the KVStore.

        KVStore<String, SessionState> tokenStore = remoteKVStoreProvider.getStore(TokenStoreCreator.class);

        final String token = new BigInteger(130, new SecureRandom()).toString(32);
        final SessionState state = new SessionState()
                .setUsername("username")
                .setClientAddress("localhost")
                .setIssuedAt(System.currentTimeMillis())
                .setExpiresAt(Long.MAX_VALUE);

        tokenStore.put(token, state);

Unfortunately, this isn’t something you can do without running custom code.

1 Like

Much thanks for the info )

I think, it’s solved.