Forum Discussion
F5 token authentication - 401 F5 Authorization Required
I'm trying to programmatically(Java) hit f5 with token authentication. The id that i'm using is currently basic auth enabled. While it is still basic auth enabled, I can successfully make calls to f5 using only token(no basic auth used). But when the id is disabled from using basic auth, I get the error "401 F5 Authorization Required" with the same code. Any help is appreciated! Here is the code:
HttpHeaders headers = new HttpHeaders(); headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON)); restTemplate = getRestTemplate();
headers.set("X-F5-Auth-Token", tokenObj.getToken()); HttpEntity
httpEntity = new HttpEntity(headers);
response = restTemplate.exchange(url, HttpMethod.GET,httpEntity,responseType);
- Satoshi_Toyosa1Ret. Employee
Have you tried accessing the BIG-IP box via either GUI or ssh/tmsh using the same user? Also, please provide the BIG-IP version because the iControl REST authentication mechanisms are slightly different from version to version.
- NICOLA_PIGNATAR
Nimbostratus
iscrizione f5 tokem
- NICOLA_PIGNATAR
Nimbostratus
non riesco ad entrare f5 tokem
- NICOLA_PIGNATAR
Nimbostratus
NON RIESCO AD ACCEDERE F5 TOKEM
- NICOLA_PIGNATAR
Nimbostratus
NON RIESCO AD ACCEDERE A F5 TOKEM
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com