CAS Authentication Method: Authenticate against Wordpress using REST API

20 views
Skip to first unread message

Nikolas Stylianides

unread,
Aug 25, 2021, 9:46:29 AM8/25/21
to CAS Community
Hi there. 
Has anyone experience or succeeded to build an authentication mechanism to utilize Wordpress REST API?


Ray Bon

unread,
Aug 26, 2021, 3:53:26 PM8/26/21
to cas-...@apereo.org
Nikolas,

Do you want to use cas as an authentication source for wordpress, https://wordpress.org/plugins/tags/cas/?

Or do you want to access wordpress from another application that is already using cas, https://apereo.github.io/cas/6.3.x/installation/Configuring-Proxy-Authentication.html?

Or do you want wordpress to be the authentication source for cas, https://apereo.github.io/cas/6.3.x/installation/Rest-Authentication.html?

Ray

On Wed, 2021-08-25 at 06:46 -0700, Nikolas Stylianides wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

Nikolas Stylianides

unread,
Aug 30, 2021, 3:29:48 AM8/30/21
to cas-...@apereo.org
Hi Ray, 
thank you for your reply. 
I want the 3rd option. Wordpress to be the authentication source for cas, https://apereo.github.io/cas/6.3.x/installation/Rest-Authentication.html?
Are you familiar with this?



--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/6c400171779567294bb15bfe9e14b4ae4dce2f65.camel%40uvic.ca.


--
Δρ. Νικόλας Στυλιανίδης
Ηλεκτρολόγος Μηχανικός και Μηχ. Υπολογιστών

Nikolas Stylianides, Dr. 

Dr. Eng. in Electrical & Computer Engineering

Contacts
-------------
Mobile Tel.: +35796741315
Skype: nicostyl

Affilication
---------------
LEAF NET LTD: Research & Development
Open University of Cyprus: Research Associate, APPLIED HEALTH INFORMATICS Master Programme Academic Board Member


Tο λακωνίζειν εστί φιλοσοφείν / Μηδέν Άγαν - Χίλων ο Λακεδαιμόνιος:                                         
Brevity is the soul of wit - Shakespeare William (Hamlet)  




Ray Bon

unread,
Aug 30, 2021, 12:38:38 PM8/30/21
to cas-...@apereo.org
Nikolas,

I took a [very brief] look through the wordpress api and I do not see anything that would indicate password submission, https://developer.wordpress.org/rest-api/. If password submission api does not exist, you would have to create it.
If your cas server has access to the user store for wordpress (db, ldap, etc), you could point cas there directly using one of the other cas auth methods, https://apereo.github.io/cas/6.3.x/installation/Configuring-Authentication-Components.html.

Ray
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.
Reply all
Reply to author
Forward
0 new messages