In this section, we will show how to connect your application to Casdoor.
As Service Provider (SP), Casdoor supports two authentication protocols:
OAuth 2.0 (OIDC)
As Identity Provider (IdP), Casdoor supports one authentication protocol:
CAS 1.0, 2.0, 3.0
Therefore, your application will talk to Casdoor via OAuth 2.0 (OIDC). Specifically, there are three ways for connecting to Casdoor:
- Standard OIDC client: use a standard OIDC client implementation, which is usually widely provided in any programming language or framework.
- Casdoor SDK: For most programming languages, Casdoor will provide easy-to-use SDK library on top of OIDC, with supporting extended functionality which are only available in Casdoor.
- Casdoor plugin: if your application is built on top of a popular platform (like Spring Boot, WordPress, etc.) and Casdoor (or a third-party) has already provided a plugin or middleware for it, then use it. It will be much easier to use a plugin than manually invoking Casdoor SDK because the former is specially made for the platform.
- CAS: Casdoor have implemented CAS 2.0 features.