Comments (3)
I've been debugging the problem and I've found that the mentioned request is already a POST request. However, the token is actually being sent in a query parameter, which is wrong.
I have tried sending the token in the body of the POST request instead, but it is ignored that way. However, I have found that the token is read from the iPlanetDirectoryPro
cookie sent with the request. This cookie should always be included because it is set after the previous POST /authenticate
request.
So I think the token can actually be omitted from the request altogether.
from wrenam.
I've been debugging the problem and I've found that the mentioned request is already a POST request.
The mentioned GET method was a mistake on my side... I have updated the original report.
I did not realize that the resource is explicitly checking only the URL as the content is application/json
and no application/x-www-form-urlencoded
(which obviously makes sense for JSON REST API 🙄).
I will have to look at the UI logic if we can simply drop the query parameter. There might be use-cases when the cookie is different from what the front-end want to check.
Or as an alternative we might add support for something like { "tokenId": "..." }
as the request body. But that would require some additional research as well.
from wrenam.
I have searched through the openam-ui-ria code and it is true that the token is always exclusively read from the cookie value and then passed to other components. The only place where the token can be different is in the token validator that can have stale cookie value.
I understand why we might want to check consistency between the UI state (e.g. Signed in as information) and the currently active session. For example when user reauthenticates in a different window, that might break UI state in the previously active window.
I am fine with simply removing support for the "tokenId" query parameter in the UI. However we should do it in a way that keeps the code clean.
from wrenam.
Related Issues (20)
- Post auth plugin presence leads to NPE when OAuth2 clients authenticate HOT 1
- ssoadm policy-* subcommands ends with Guice error
- XUI is not able to recover from invalid SSO cookie value
- Policies created by create-xacml command are not visible
- Replication failure when creating realm in HA environment HOT 1
- Ssoadm sometimes tries to use closed LDAP connection HOT 3
- NoSuchElementException when querying expired CTS tokens during realm configuration
- Success URL and goto parameter is being ignored after login HOT 1
- Missing realm or event type when processing policy set notification
- New Policy Sets are not shown after import in XUI
- Strange behaviour of dsameuser SSO token management when using ssoadm HOT 1
- Resource Type without date fields breaks Policy Sets import
- Configuration Wizard page got errors with java 17 HOT 2
- How to remove the ConfirmationCallback in fr-oath module HOT 3
- New SNAPSHOT version is missing service XML upgrade step HOT 1
- Page for revoking OAuth2 Tokens does not load due to missing dataTable dependency (XUI) HOT 1
- Deleting one of the default modules end up with timeout
- Login is broken on WebKit based browsers
- Your account has been locked when using multiple user data stores HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wrenam.