PageRenderTime 61ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/README.md

https://gitlab.com/deep060494/spring-security-oauth
Markdown | 94 lines | 70 code | 24 blank | 0 comment | 0 complexity | a812c26d523614cc831293b40908b786 MD5 | raw file
  1. [![Build Status](https://travis-ci.org/spring-projects/spring-security-oauth.svg?branch=master)](https://travis-ci.org/spring-projects/spring-security-oauth)
  2. This project provides support for using Spring Security with OAuth
  3. (1a) and OAuth2. It provides features for implementing both consumers
  4. and providers of these protocols using standard Spring and Spring
  5. Security programming models and configuration idioms.
  6. # Code of Conduct
  7. This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.adoc).
  8. By participating, you are expected to uphold this code. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.
  9. # Getting Started
  10. [Download](https://github.com/spring-projects/spring-security-oauth/tags)
  11. or clone from
  12. [GIT](https://github.com/spring-projects/spring-security-oauth) and then
  13. use Maven (3.0.\*) and Java (1.6 or better):
  14. $ git clone ...
  15. $ mvn install -P bootstrap
  16. Use the `bootstrap` profile only the first time - it enables some
  17. repositories that can't be exposed in the poms by default. You may
  18. find it useful to add this profile to your local `settings.xml`.
  19. SpringSource ToolSuite users (or Eclipse users with the latest
  20. m2eclipse plugin) can import the projects as existing Maven projects.
  21. Spring Security OAuth is released under the terms of the Apache
  22. Software License Version 2.0 (see license.txt).
  23. ## Samples
  24. Samples and integration tests are in [a subdirectory](samples). There
  25. is a separate README there for orientation and information. Once you
  26. have installed the artifacts locally (as per the getting started
  27. instructions above) you should be able to
  28. $ cd samples/oauth2/tonr
  29. $ mvn tomcat7:run
  30. and visit the app in your browser at [http://localhost:8080/tonr2/](http://localhost:8080/tonr2/)
  31. to check that it works. (This is for the OAuth 2.0 sample, for the
  32. OAuth 1.0a sample just remove the "2" from the directory path.) Integration tests
  33. require slightly different settings for Tomcat so you need to add a profile:
  34. $ cd samples/oauth2/tonr
  35. $ mvn integration-test -P integration
  36. ## Changelog
  37. Lists of issues addressed per release can be found in [github](https://github.com/spring-projects/spring-security-oauth/milestones) (older releases are in
  38. [JIRA](https://jira.spring.io/browse/SECOAUTH/?selectedTab=com.atlassian.jira.jira-projects-plugin:versions-panel)).
  39. ## Additional Resources
  40. * [Spring Security OAuth User Guide](http://projects.spring.io/spring-security-oauth/docs/Home.html)
  41. * [Spring Security OAuth Source](http://github.com/spring-projects/spring-security-oauth)
  42. * [Stackoverflow](http://stackoverflow.com/questions/tagged/spring-security+spring+oauth)
  43. # Contributing to Spring Security OAuth
  44. Here are some ways for you to get involved in the community:
  45. * Get involved with the Spring community on the Spring Community Forums. Please help out on the
  46. [forum](http://forum.springsource.org/forumdisplay.php?f=79) by responding to questions and joining the debate.
  47. * Create [github issues](https://github.com/spring-projects/spring-security-oauth/issues) for bugs and new features and comment and
  48. vote on the ones that you are interested in.
  49. * Github is for social coding: if you want to write code, we encourage contributions through pull requests from
  50. [forks of this repository](http://help.github.com/forking/). If you want to contribute code this way, please
  51. reference a github issue as well covering the specific issue you are addressing.
  52. * Watch for upcoming articles on Spring by [subscribing](http://www.springsource.org/node/feed) to springframework.org
  53. Before we accept a non-trivial patch or pull request we will need you to sign the
  54. [contributor's agreement](https://support.springsource.com/spring_committer_signup).
  55. Signing the contributor's agreement does not grant anyone commit rights to the main repository, but it does mean that we
  56. can accept your contributions, and you will get an author credit if we do. Active contributors might be asked to join
  57. the core team, and given the ability to merge pull requests.
  58. ## Code Conventions and Housekeeping
  59. None of these is essential for a pull request, but they will all help. They can also be added after the original pull
  60. request but before a merge.
  61. * Use the Spring Framework code format conventions. Import `eclipse-code-formatter.xml` from the root of the project
  62. if you are using Eclipse. If using IntelliJ, copy `spring-intellij-code-style.xml` to `~/.IntelliJIdea*/config/codestyles`
  63. and select spring-intellij-code-style from Settings -> Code Styles.
  64. * Make sure all new .java files have a simple Javadoc class comment with at least an @author tag identifying you, and
  65. preferably at least a paragraph on what the class is for.
  66. * Add the ASF license header comment to all new .java files (copy from existing files in the project)
  67. * Add yourself as an @author to the .java files that you modify substantially (more than cosmetic changes).
  68. * Add some Javadocs and, if you change the namespace, some XSD doc elements.
  69. * A few unit tests would help a lot as well - someone has to do it.
  70. * If no-one else is using your branch, please rebase it against the current master (or other target branch in the main project).