OpenID Connect (OIDC)


OpenID Connect 1.0 is a simple identity layer on top of the OAuth 2.0 protocol. It allows Clients to verify the identity of the End-User based on the authentication performed by an Authorization Server, as well as to obtain basic profile information about the End-User in an interoperable and REST-like manner. OpenID Connect allows clients of all types, including Web-based, mobile, and JavaScript clients, to request and receive information about authenticated sessions and end-users. The specification suite is extensible, allowing participants to use optional features such as encryption of identity data, discovery of OpenID Providers, and session management, when it makes sense for them.
"What is OpenID Connect?"


A distributed Memcache setup is required to operate this app - such as Redis or Memcached properly. Please follow the documentation on how to set up caching.

Code Flow

OAuth Code Flow Sequence Diagram

Configure ownCloud

Please refer to the OIDC configuration example in the sample configuration documentation for how to configure ownCloud to work with OIDC.

Setup Within the OpenID Provider

When registering ownCloud as and OpenID Client, use as the redirect URL. In case OpenID Connect Front-Channel Logout 1.0 is supported, please enter as the logout URL within the client registration of the OpenID Provider.

Setup Service Discovery

To allow other clients to use OpenID Connect when talking to ownCloud, please set up a proxy on the webserver to point .well-known/openid-configuration to /index.php/apps/openidconnect/config. Here is an .htaccess example (requires Apache modules proxy and proxy_http to be enabled)

RewriteRule ^\.well-known/openid-configuration /index.php/apps/openidconnect/config [P]