README.adoc 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. image::https://badges.gitter.im/Join%20Chat.svg[Gitter,link=https://gitter.im/spring-projects/spring-security?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge]
  2. image:https://github.com/spring-projects/spring-authorization-server/workflows/CI/badge.svg?branch=main["Build Status", link="https://github.com/spring-projects/spring-authorization-server/actions?query=workflow%3ACI"]
  3. = Spring Authorization Server
  4. The Spring Authorization Server project, led by the https://spring.io/projects/spring-security/[Spring Security] team, is focused on delivering https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-07#section-1.1[OAuth 2.1 Authorization Server] support to the Spring community.
  5. This project replaces the Authorization Server support provided by https://spring.io/projects/spring-security-oauth/[Spring Security OAuth].
  6. == Feature Planning
  7. This project uses https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects[GitHub Projects] to prioritize the feature roadmap and help organize the project plan.
  8. The project board can be accessed https://github.com/orgs/spring-projects/projects/8[here].
  9. The feature list can be viewed in the https://docs.spring.io/spring-authorization-server/docs/current/reference/html/overview.html#feature-list[reference documentation].
  10. == Support Policy
  11. The Spring Authorization Server project provides software support through the https://tanzu.vmware.com/support/oss[VMware Tanzu OSS support policy].
  12. https://tanzu.vmware.com/spring-runtime[Commercial support], which offers an extended support period, is also available from VMware.
  13. == Getting Started
  14. The first place to start is to read the https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-07[OAuth 2.1 Authorization Framework] to gain an in-depth understanding on how to build an Authorization Server.
  15. It is a critically important first step as the implementation must conform to the specification defined in the OAuth 2.1 Authorization Framework and the https://github.com/spring-projects/spring-authorization-server/wiki/OAuth-2.0-Specifications[related specifications].
  16. The second place to start is to become very familiar with the codebase in the following Spring Security modules:
  17. - https://github.com/spring-projects/spring-security/tree/main/oauth2/oauth2-core[OAuth 2.0 Core]
  18. - https://github.com/spring-projects/spring-security/tree/main/oauth2/oauth2-client[OAuth 2.0 Client]
  19. - https://github.com/spring-projects/spring-security/tree/main/oauth2/oauth2-resource-server[OAuth 2.0 Resource Server]
  20. - https://github.com/spring-projects/spring-security/tree/main/oauth2/oauth2-jose[OAuth 2.0 JOSE] (Javascript Object Signing and Encryption)
  21. A significant amount of effort was put into developing the https://spring.io/blog/2018/01/30/next-generation-oauth-2-0-support-with-spring-security[Next Generation OAuth 2.0 Support in Spring Security].
  22. The goal is to leverage all the knowledge learned thus far and apply the same to the development of Spring Authorization Server.
  23. Submitted work via pull requests should follow the same coding style/conventions and adopt the same or similar design patterns that have been established in Spring Security's OAuth 2.0 support.
  24. == Documentation
  25. Be sure to read the https://docs.spring.io/spring-authorization-server/docs/current/reference/html/[Spring Authorization Server Reference] and https://docs.spring.io/spring-security/reference[Spring Security Reference], as well as the https://docs.spring.io/spring-security/reference/servlet/oauth2/index.html[OAuth 2.0 Reference], which describes the Client and Resource Server features available.
  26. JavaDoc is also available for the https://docs.spring.io/spring-authorization-server/docs/current/api/[Spring Authorization Server API] and https://docs.spring.io/spring-security/site/docs/current/api/[Spring Security API].
  27. == Code of Conduct
  28. This project adheres to the Contributor Covenant link:CODE_OF_CONDUCT.adoc[code of conduct].
  29. By participating, you are expected to uphold this code. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.
  30. == Downloading Artifacts
  31. See https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Artifacts[downloading Spring artifacts] for Maven repository information.
  32. == Building from Source
  33. Spring Authorization Server uses a https://gradle.org[Gradle]-based build system.
  34. In the instructions below, https://vimeo.com/34436402[`./gradlew`] is invoked from the root of the source tree and serves as
  35. a cross-platform, self-contained bootstrap mechanism for the build.
  36. === Prerequisites
  37. https://help.github.com/set-up-git-redirect[Git] and the https://www.oracle.com/technetwork/java/javase/downloads[JDK17 build].
  38. Be sure that your `JAVA_HOME` environment variable points to the `jdk17` folder extracted from the JDK download.
  39. === Check out sources
  40. [indent=0]
  41. ----
  42. git clone git@github.com:spring-projects/spring-authorization-server.git
  43. ----
  44. === Install all spring-\* jars into your local Maven cache
  45. [indent=0]
  46. ----
  47. ./gradlew install
  48. ----
  49. === Compile and test; build all jars, distribution zips, and docs
  50. [indent=0]
  51. ----
  52. ./gradlew build
  53. ----
  54. Discover more commands with `./gradlew tasks`.
  55. == Getting Support
  56. Check out the https://stackoverflow.com/questions/tagged/spring-authorization-server[Spring Authorization Server tags on Stack Overflow].
  57. https://spring.io/support[Commercial support] is available too.
  58. == Contributing
  59. https://help.github.com/articles/creating-a-pull-request[Pull requests] are welcome; see the link:CONTRIBUTING.adoc[contributor guidelines] for details.
  60. == License
  61. Spring Authorization Server is Open Source software released under the
  62. https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].