>> Can you use a pre-shared key between the app and the API (and not involve 
>> cas)?
No, that will not be an option. The API is protected by CAS and that won't 
change.


From: [email protected] <[email protected]> On Behalf Of Ray Bon
Sent: Wednesday, November 23, 2022 5:25 PM
To: [email protected]
Subject: Re: [cas-user] CAS Client help

Michael,

Can you use a pre-shared key between the app and the API (and not involve cas)?

Ray

On Wed, 2022-11-23 at 18:18 +0000, Michael Remijan wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

>> If a user is logged in to the main app, you can use proxy protocol

There is no "user" to login.  A background batch process needs to be able to 
authenticate by itself.

From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf OfRay Bon
Sent: Wednesday, November 23, 2022 10:41 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [cas-user] CAS Client help

Michael,

If a user is logged in to the main app, you can use proxy protocol, 
https://apereo.github.io/cas/6.6.x/protocol/CAS-Protocol.html#proxy-web-flow-diagram<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas%2F6.6.x%2Fprotocol%2FCAS-Protocol.html%23proxy-web-flow-diagram&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IAjumqp7jqEEu4xCWDKeBfXCqogysn9vBgIH81QpUl4%3D&reserved=0>

Client docs have examples, 
https://apereo.github.io/cas/6.6.x/integration/CAS-Clients.html<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas%2F6.6.x%2Fintegration%2FCAS-Clients.html&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YYhRwTT0HryOQMuKPtvTZ43lNJYv%2BI%2FxwMwW3KX4TDE%3D&reserved=0>
 (I have used php, java, and pac4j as clients).

Both user application and REST API applications would be registered in cas as 
able to proxy 
https://apereo.github.io/cas/6.6.x/services/Configuring-Service-Proxy-Policy.html<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas%2F6.6.x%2Fservices%2FConfiguring-Service-Proxy-Policy.html&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=M2SM1fnkO2Ezbiw0%2B9%2FIm7Vn8njEBuDOQQt4JI6kksA%3D&reserved=0>


Note: this is different from proxied / delegated authentication.

Ray

On Tue, 2022-11-22 at 21:48 +0000, Michael Remijan wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hello user community,

I am looking for some information on a CAS client and I haven't been able to 
find it anywhere online.

All CAS Client references I've find have been for configuring a Web App so that 
user login integrates with CAS for authentication. Unfortunately, this is not 
what I need.

I have an REST API endpoint I need to integrate with in a headless/background 
process kind of way.  Basic data integration stuff...periodically call the API 
throughout the day, get the data, process data.  So I need an example of this 
kind of integration...having a background process pass the CAS authentication 
server what it needs to authenticate the request in a non-interactive, headless 
manner so my process can integrate with a REST API.

Any examples like this exist?  Any help would be appreciated.

Mike

--
- Website: 
https://apereo.github.io/cas<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=iJXABeGHD%2BwWd5eCPH1G%2FJgI7PuotMtZ%2BBD6jFl%2BfNw%3D&reserved=0>
- Gitter Chatroom: 
https://gitter.im/apereo/cas<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitter.im%2Fapereo%2Fcas&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7FfcWcHM3b69sBXl6Ft0KsFN6s8HDAwfH9QTJnFRLBo%3D&reserved=0>
- List Guidelines: 
https://goo.gl/1VRrw7<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2F1VRrw7&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UdIuWtxJ3%2FpxSH3tcZ%2BDJgdbA5Kqo%2Fn6rD%2BxsDP7zco%3D&reserved=0>
- Contributions: 
https://goo.gl/mh7qDG<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2Fmh7qDG&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=iyZNHpG4sEk2U4U9vYj9S8H76%2FY%2FBtBzYEKT%2BGg0wCw%3D&reserved=0>
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/c17ee8d4b55125b31307132c437777a7a772caa0.camel%40uvic.ca<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fa%2Fapereo.org%2Fd%2Fmsgid%2Fcas-user%2Fc17ee8d4b55125b31307132c437777a7a772caa0.camel%2540uvic.ca%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sZ%2BruVYIDku6vC643uyrkmb%2FSq568VjOU%2B3TuQWvccQ%3D&reserved=0>.

--
- Website: 
https://apereo.github.io/cas<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=iJXABeGHD%2BwWd5eCPH1G%2FJgI7PuotMtZ%2BBD6jFl%2BfNw%3D&reserved=0>
- Gitter Chatroom: 
https://gitter.im/apereo/cas<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitter.im%2Fapereo%2Fcas&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7FfcWcHM3b69sBXl6Ft0KsFN6s8HDAwfH9QTJnFRLBo%3D&reserved=0>
- List Guidelines: 
https://goo.gl/1VRrw7<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2F1VRrw7&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UdIuWtxJ3%2FpxSH3tcZ%2BDJgdbA5Kqo%2Fn6rD%2BxsDP7zco%3D&reserved=0>
- Contributions: 
https://goo.gl/mh7qDG<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2Fmh7qDG&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=iyZNHpG4sEk2U4U9vYj9S8H76%2FY%2FBtBzYEKT%2BGg0wCw%3D&reserved=0>
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/90f17d12a284f4486ed12b7d8a7f6f4672875033.camel%40uvic.ca<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fa%2Fapereo.org%2Fd%2Fmsgid%2Fcas-user%2F90f17d12a284f4486ed12b7d8a7f6f4672875033.camel%2540uvic.ca%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7C%7Caaedc9bb417843ded1cd08dacda9e3aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638048426802633427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8i1O26dU%2FIN4sTayapon2gug1SARtr78J9pyJRzejms%3D&reserved=0>.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/DM6PR06MB489067C7DAB06E99F70A667FD2139%40DM6PR06MB4890.namprd06.prod.outlook.com.

Reply via email to