Skip to content
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

Obtaining a Ticket Granting Ticket and a Service Ticket for an API #90

Open
idilov opened this issue Feb 12, 2019 · 4 comments
Open

Obtaining a Ticket Granting Ticket and a Service Ticket for an API #90

idilov opened this issue Feb 12, 2019 · 4 comments

Comments

@idilov
Copy link

idilov commented Feb 12, 2019

I am going to call a Java REST API from .net. The API is secured by CAS.
Does this project cover the protocol described here i.e. getting, validating, caching, deleting and error-handling a TGT and a ST for an API?
If this is out of scope for dotnet-cas-client, is there any .net library or .net example for accessing a REST API after authenticating via CAS server?

@phantomtypist
Copy link
Contributor

This client does not contain the code to handle TGT via the CAS REST protocol. If you'd like you can contribute that code and submit a PR.

@KhanhVanCong
Copy link

I have this problem with API. I have one client app use the outer CAS to authentication and one other server API to authorization as well as get data. In the client web app, when the user was verified from the CAS server, How can I tell other server API that the user is authenticated and generate token? Do you have any experience with this problem?

@TheHokieCoder
Copy link
Contributor

@KhanhVanCong You will not be able to, out of the box, use the same token/authentication cookie generated by this ASP.NET CAS client to perform authentication/authorization with your API server that is another application/server. And as @phantomtypist mentioned earlier, this client does not currently support CAS via REST. What you are looking for is the ability to secure two or more microservices with the same authentication system (CAS, in this case), which unfortunately is outside the scope of this project.

@KhanhVanCong
Copy link

@TheHokieCoder Thank you for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants