Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Controllers · mod_oauth2
  • Reference
  • Integrator
  • Authentication
  • API and integration
  • Controller
  • OAuth 2.0

controller_oauth2_service_authorize

Module

mod_oauth2

Start an OAuth login with an external identity provider.

The configured service module supplies the provider authorization URL. The controller stores the service data and original request arguments in a signed, expiring state value, then renders the Cotonic worker that performs the redirect. The state expires after one hour.

Edit on GitHub

Related documentation

Controllers

controller_media_runner_callback

Client-side receiver for results produced by the external media runner site. This controller belongs to mod_base , so each client site has…

Models

oauth2_consumer

Model for OAuth2 consumer configuration and token access, including consumer lists and per-consumer token retrieval.

Modules

mod_facebook

The mod_facebook module plugs into the authentication system to enable Facebook login on your site.

Modules

mod_microsoft

Adds logon using the Microsoft identity platform.

Modules

mod_linkedin

The mod_linkedin module plugs into the authentication system to enable LinkedIn login on your site.

Controllers

controller_oauth2_access_token

Exchange OAuth 2.0 credentials for a bearer access token.

Modules

mod_oauth2

OAuth2 provider module for app/client/token management and authorization flows.

Models

oauth2_service

Model for OAuth2 service flow helpers, including redirect URL generation and oauth redirect processing.

Controllers

controller_oauth2_service_redirect

Complete the browser-facing redirect step of an external OAuth login.

GitHub © 2026 Zotonic