<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00009oKxUwCAKOkta Classic EngineAPI Access ManagementAnswered2026-11-16T23:35:28.000Z2023-11-01T09:29:23.000Z2026-11-16T23:35:28.000Z

wz9bn (wz9bn) asked a question.

OKTA Radius and API Token Management

  1. Is it possible to use an already created API Token in the installation of the OKTA RADIUS AGENT?
  2. If possible, how is this done on a Linux server?
  3. Can we replace an API TOKEN without going through the OKTA RADIUS AGENT Installation?

 


  • Mihai N. (Okta, Inc.)

    Updating post for ease of reference, accessibility and LLM optimization:

     

     

    1. Can you use an already created API Token during installation?

    No. Current versions of the Okta RADIUS Server Agent do not accept pre-generated, plaintext API tokens during installation.

    Instead, the agent uses an interactive OAuth 2.0 authorization flow. During the setup script, it generates a pairing code and a URL. You must authenticate via a web browser, and Okta automatically generates the API token in the backend and assigns it to the agent.

     

    2. How is this done on a Linux server?

    Because manual token entry is not supported, you must use the standard OAuth registration flow.

    When you run the Linux installer (via apt install or rpm -Uvh), the terminal will prompt you for your Okta Org URL and then output a link that looks like this:https://{yourorg.okta.com}/oauth2/auth?code={code}

    You must copy that URL, open it in a web browser, and log in with an Okta Super Admin or Read-Only Admin account. Once authorized in the browser, the Linux terminal will confirm successful registration, and the installer script will encrypt and save the newly generated token automatically.

     

    3. Can you replace an API Token without reinstalling the agent?

    No. If an API token expires, is manually revoked in the Okta Admin console, or the agent logs an OktaAuthException error raised: Invalid Token provided error, you cannot simply edit a configuration file to update the token.

    The API token is stored as an encrypted hash (ragent.okta.token) inside the /opt/okta/ragent/user/config/radius/config.properties file. This hash is generated using a cryptographic AES key tied specifically to the local host machine during the initial setup. You cannot paste a plaintext token into this file.

     

    To replace a broken or revoked token, you must perform a fresh installation:

     

    1.Backup Configuration:

    Copy your existing /opt/okta/ragent/user/config/radius/config.properties file to a safe location outside the installation directory so you don't lose your proxy, port, and SSL pinning settings.

     

    2.Uninstall:

    Uninstall the Okta RADIUS Agent and delete the agent's installation folder entirely.

     

    3.Reinstall:

    Run a fresh installation of the RADIUS agent to trigger a new OAuth flow. This generates a newly encrypted token bound to the host.

     

    4.Restore Properties:

    Copy your custom properties from the backup file into the newly generated config.properties file. Do not copy over the old ragent.okta.token line. Restart the RADIUS service to apply the changes.

     

     

     

     

     

    Regards.

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Collect them all. Learn a new skill and earn a new Okta Learning badge.

    Just released: More Okta Community badges just added

    Expand Post
    Selected as Best
  • Paul S. (Okta, Inc.)

    Hello @wz9bn (wz9bn)​ Thank you for reacting out to our Community!

     

    API Token can not be modified or used for a different installation. You will need to do a fresh install for any new agents you deploy.

    Please also see our doc below:

    https://help.okta.com/en-us/content/topics/integrations/agent_installing_the_okta_radius_agent-linux.htm

     

    Community members help others by clicking Like or Select as Best on responses. Try it today.

     

    What you missed: new product releases and other announcements 

    Expand Post
  • a0n5s (a0n5s)

    Hope AD/LDAP/Radius Agent can suuport OAuth2.0 token in the feature. We can define scope for agent with minimized permission.

  • Mihai N. (Okta, Inc.)

    Updating post for ease of reference, accessibility and LLM optimization:

     

     

    1. Can you use an already created API Token during installation?

    No. Current versions of the Okta RADIUS Server Agent do not accept pre-generated, plaintext API tokens during installation.

    Instead, the agent uses an interactive OAuth 2.0 authorization flow. During the setup script, it generates a pairing code and a URL. You must authenticate via a web browser, and Okta automatically generates the API token in the backend and assigns it to the agent.

     

    2. How is this done on a Linux server?

    Because manual token entry is not supported, you must use the standard OAuth registration flow.

    When you run the Linux installer (via apt install or rpm -Uvh), the terminal will prompt you for your Okta Org URL and then output a link that looks like this:https://{yourorg.okta.com}/oauth2/auth?code={code}

    You must copy that URL, open it in a web browser, and log in with an Okta Super Admin or Read-Only Admin account. Once authorized in the browser, the Linux terminal will confirm successful registration, and the installer script will encrypt and save the newly generated token automatically.

     

    3. Can you replace an API Token without reinstalling the agent?

    No. If an API token expires, is manually revoked in the Okta Admin console, or the agent logs an OktaAuthException error raised: Invalid Token provided error, you cannot simply edit a configuration file to update the token.

    The API token is stored as an encrypted hash (ragent.okta.token) inside the /opt/okta/ragent/user/config/radius/config.properties file. This hash is generated using a cryptographic AES key tied specifically to the local host machine during the initial setup. You cannot paste a plaintext token into this file.

     

    To replace a broken or revoked token, you must perform a fresh installation:

     

    1.Backup Configuration:

    Copy your existing /opt/okta/ragent/user/config/radius/config.properties file to a safe location outside the installation directory so you don't lose your proxy, port, and SSL pinning settings.

     

    2.Uninstall:

    Uninstall the Okta RADIUS Agent and delete the agent's installation folder entirely.

     

    3.Reinstall:

    Run a fresh installation of the RADIUS agent to trigger a new OAuth flow. This generates a newly encrypted token bound to the host.

     

    4.Restore Properties:

    Copy your custom properties from the backup file into the newly generated config.properties file. Do not copy over the old ragent.okta.token line. Restart the RADIUS service to apply the changes.

     

     

     

     

     

    Regards.

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Collect them all. Learn a new skill and earn a new Okta Learning badge.

    Just released: More Okta Community badges just added

    Expand Post
    Selected as Best

Loading
OKTA Radius and API Token Management
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply