Differences from Spring

spring_boot_starter_oauth2_client follows Spring Security's spring-security-oauth2-client and -oauth2-core, with Spring Boot's auto-configuration and Spring Cloud OpenFeign's OAuth2 interceptor: the same properties, types and rules. This page lists where it does not, and why.

Why

The package must run in Flutter apps and browsers as well as on servers, so it cannot bring a web server, and every network call is asynchronous. A few behaviours are safer than Spring's defaults, and Sign in with Apple and client-side DPoP are additions.

Example

# The same keys as Spring Boot:
spring.security.oauth2.client.registration.keycloak.client-id=neon-web
spring.security.oauth2.client.provider.keycloak.issuer-uri=https://login.example.com/realms/neon
# Spring Cloud's Feign key, without cloud.openfeign:
spring.feign.oauth2.enabled=true

Packaging and properties

Spring Here Why
spring-boot-starter-oauth2-client brings web security and oauth2Login() the client only; a server lists spring_boot_starter_security, an app spring_boot_starter_flutter_security It must run where there is no dart:io server.
spring.cloud.openfeign.oauth2.* spring.feign.oauth2.*; the old names stop the start Spring Cloud means nothing in Dart.
Issuer discovery at startup at the first use; a failure is retried at a use 10 seconds later or more An app starts while the provider is unreachable.
Plain http:// URIs accepted silently a warning once per registration outside loopback Tokens over http:// can be read and changed.

Behaviour

Additions

Not supported yet

See also