Giter VIP home page Giter VIP logo

Comments (6)

kakawait avatar kakawait commented on June 5, 2024 1

I'm currently out of computer & internet. I will check it as soon I can get both. Please be patient or downgrade version

from cas-security-spring-boot-starter.

kakawait avatar kakawait commented on June 5, 2024

@coskundeniz89 I'm not sure to understand because I tried using sample project and I don't have any issue related to #14 scenario.

What I tried:

  1. Get a TGT using following CAS api
> POST /cas/v1/tickets HTTP/1.1
> Host: CAS_SERVER
> Content-Type: application/x-www-form-urlencoded
> Accept: application/json
  1. Then ask a service ticket for my service http://localhost:8080/api
> POST /cas/v1/tickets/TGT-1-XJv0iB6SM11NRPyFnM6cjzwQHQ7YCpmR33GTdNiE2yBQYk0xsm-33188ef14bbf HTTP/1.1
> Host: CAS_SERVER
> Content-Type: application/x-www-form-urlencoded
| service=http%3A%2F%2Flocalhost%3A8080%2Fapi
  1. Call service using the previous service ticket
# REQUEST
> GET /api?ticket=ST-2-a1iRq3gpa9dHhz6nnK7a-33188ef14bbf HTTP/1.1
> Host: localhost:8080

# RESPONSE
< HTTP/1.1 302 
< Set-Cookie: JSESSIONID=4DD9341A23F1C122F1E93A3FC56171A7; Path=/; HttpOnly
< Location: http://locahost:8080/api

Then after 302 to http://locahost:8080/api without issue! That prints

Hello, casuser!


Could you please provides me a sample a more detailed scenario? And are you using latest version 0.4.4?

from cas-security-spring-boot-starter.

coskundeniz89 avatar coskundeniz89 commented on June 5, 2024

Hi @kakawait , i think i cant understand this problem. I havent got a problem for rest login it works. But I have problem with browser login. I do this steps:

  1. I enter "https://localhost:8443/protected" url to browser.
  2. After i redirected to "https://localhost:10100/cas/login?service=https%3A%2F%2Flocalhost%3A8443%2Flogin" url
  3. I enter correct username and password.
  4. Cas redirect "https://localhost:8443/login?ticket=ST-18-SeI241tPdEc63Y4kVCrL-dd32f4917ef6"

I havent got login page. I was expecting to go to "/protected" page. But it doesnt.

I experienced the same thing #14 . Now rest api authentication works, but page ui authentication doesnt work

from cas-security-spring-boot-starter.

coskundeniz89 avatar coskundeniz89 commented on June 5, 2024

And you can see this project.
https://github.com/coskundeniz89/my-cas-client

from cas-security-spring-boot-starter.

coskundeniz89 avatar coskundeniz89 commented on June 5, 2024

I think you can do your configuration like unicon. Base-url can change for environment and you should not interfere "login" and other urls. If you can do this, #51 issue will also be fixed.

security.cas.server-url-prefix=https://cashost.com/cas
security.cas.server-login-url=https://cashost.com/cas/login
security.cas.client-host-url=https://casclient.com

from cas-security-spring-boot-starter.

coskundeniz89 avatar coskundeniz89 commented on June 5, 2024

Hi @kakawait . I removed security.cas.paths from yml. It is work now. It doesnt redirect to login url (ui and rest).

from cas-security-spring-boot-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.