-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy ticket service and proxy ticket validation #105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are just a few issues I have spotted by looking at the code - I have not checked the underlying logic yet. For example I'd like to check whether replacing "ST-" with "PGT-" in a service ticket would result in such token being invalid, as I'm not so sure now.
src/main/java/org/keycloak/protocol/cas/endpoints/ProxyValidateEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java
Show resolved
Hide resolved
@alexandrerw : Could you please squash all your changes into a single commit and apply changes from branch pr105: |
@alexandrerw : One more thing, remove "Proxy ticket service and proxy ticket validation [CAS 2.0]" from missing features section in README. |
Proxy endpoints improvements suggested by Jacek Kowalski Add ticket type to storage key Rename isreuse to isReusable Remove "parsing" of "codeUUID" that is String, not UUID Improve error reporting in CAS ticket validation
@jacekkow done. |
Issue #37
Changelog:
/serviceValidate and /p3/serviceValidate with optional parameter "pgtUrl" create PGT and PGTIOU ticket, return a proxyGrantingTicket(PGTIOU).
/proxy receive a PGT ticket and exchange it for a PT ticket.
/proxyValidate and /p3/proxyValidate check if a PT ticket is valid.
Note: OAuth2CodeParser is not used because the PGT ticker is reusable, keycloak 23.0.0 and above generate an error.