spring-security-oauth2とspring-cloud-starter-oauth2

シュエタグプタ

SpringBootを使用してoAuth2アプリケーションの構築に取り組んでいます。ただし、Githubにはとを使用したさまざまなサンプルプロジェクトがspring-security-oauth2ありspring-cloud-starter-oauth2ます。
アプリケーションの両方で特定のjarを使用できる特定のシナリオはありますか?

Springクラウドは主に分散システムに使用されますが。Githubにspring-cloud-starter-oauth2は、非分散アプリケーションでも使用する多くの実装があります。ありがとう。

私はBuxを持っています

複雑な依存関係管理を解決するために、SpringBootスターターが導入されました。スターターPOMは、依存関係記述子のセットです(一般的に使用される複数の依存関係を1つのPOMに結合します)。それ以外の場合は、アプリケーションに個別に手動で含めることもできます。スターターは、Web、テスト、データJPA、セキュリティ、メーリングなどで利用できます。スターターでない場合、それはモジュールです:単純なアーティファクト。

Webで作業したい場合は、tomcat、mvc、jacksonをすべて自分で(手動で)含めることができます。これは、単一の単純なアプリケーションに対する多くの依存関係です。代わりに、1つのスターター依存関係を導入するだけです。

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

あなたの質問に来る:

spring-security-oauth2はグループorg.springframework.security.oauthのアーティファクトであり、Spring Security(クラウドではない)のoAuth2(のみ)をサポートしますが、spring-cloud-starter-oauth2はスターターWeb依存関係のような複数の依存関係のセットです上記。これはSpringCloudのOAuth2スターターであり、SpringCloudを使用している場合にのみ使用できます。このスターターには、SSOやOAuth2クライアントなどのSpringCloud用のOAuth2フレームワークの下にすぐに使用できる依存関係のバンドルが付属しています。

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Spring Security OAuth2 | InsufficientAuthenticationException

分類Dev

Spring Security OAuth2:InsufficientAuthenticationException

分類Dev

Migrating from Spring Boot Oauth2 to Spring Security 5

分類Dev

Spring boot 2.0.3 + Security + Oauth2 autoconfigure

分類Dev

Incremental authorization for Google OAuth2 Sign in with Spring Security

分類Dev

Spring OAuth2:InsufficientAuthenticationException

分類Dev

How to enable /oauth/check_token with Spring Security Oauth2 using XML

分類Dev

Spring Security OAuth2: how to add multiple Security Filter Chain of type ResourceServerConfigurer?

分類Dev

同じリソースへのSpring Security OAuth2とLdap認証

分類Dev

Spring Security oauth2とクライアント資格情報のフロー

分類Dev

Spring Security OAuth2はJSONを受け入れる

分類Dev

Spring Security OAuth2ピュアリソースサーバー

分類Dev

GoogleでのSpring Security OAuth2ログイン

分類Dev

Spring Boot Security OAuth2 Get Access_token from Cookie

分類Dev

NoClassDefFoundError:javax / xml / bind / UnmarshalException-Spring Security oauth2

分類Dev

NoClassDefFoundError:javax / xml / bind / UnmarshalException-Spring Security oauth2

分類Dev

Configuration of Microsoft Graph OAuth2 authentication in Spring Security - Error AADSTS90014

分類Dev

Spring Boot Security OAuth2:WebSecurityConfigurerAdapter:302 / errorにリダイレクト

分類Dev

How to use Spring Security 5 and OAuth2 Client to get refresh tokens and make API calls?

分類Dev

How to use Spring Security 5 and OAuth2 Client to get refresh tokens and make API calls?

分類Dev

Where is an Example Spring Security OAuth2 Client Configuration using XML for Authorization Code?

分類Dev

Spring Security - oAuth2 実装のための UserDetailsService?

分類Dev

Spring Security OAuth2実装で成功したOAuth2認証にCookieを設定する

分類Dev

spring - oauth2 redirecting to unknown url

分類Dev

Spring Oauth2 - custom exception handler

分類Dev

TokenStore MongoDB Spring OAuth2

分類Dev

Spring Boot 2.0.0 + OAuth2

分類Dev

Spring WebFlux Kotlin OAuth2 CORS

分類Dev

Android client for OAuth2 with Spring

Related 関連記事

  1. 1

    Spring Security OAuth2 | InsufficientAuthenticationException

  2. 2

    Spring Security OAuth2:InsufficientAuthenticationException

  3. 3

    Migrating from Spring Boot Oauth2 to Spring Security 5

  4. 4

    Spring boot 2.0.3 + Security + Oauth2 autoconfigure

  5. 5

    Incremental authorization for Google OAuth2 Sign in with Spring Security

  6. 6

    Spring OAuth2:InsufficientAuthenticationException

  7. 7

    How to enable /oauth/check_token with Spring Security Oauth2 using XML

  8. 8

    Spring Security OAuth2: how to add multiple Security Filter Chain of type ResourceServerConfigurer?

  9. 9

    同じリソースへのSpring Security OAuth2とLdap認証

  10. 10

    Spring Security oauth2とクライアント資格情報のフロー

  11. 11

    Spring Security OAuth2はJSONを受け入れる

  12. 12

    Spring Security OAuth2ピュアリソースサーバー

  13. 13

    GoogleでのSpring Security OAuth2ログイン

  14. 14

    Spring Boot Security OAuth2 Get Access_token from Cookie

  15. 15

    NoClassDefFoundError:javax / xml / bind / UnmarshalException-Spring Security oauth2

  16. 16

    NoClassDefFoundError:javax / xml / bind / UnmarshalException-Spring Security oauth2

  17. 17

    Configuration of Microsoft Graph OAuth2 authentication in Spring Security - Error AADSTS90014

  18. 18

    Spring Boot Security OAuth2:WebSecurityConfigurerAdapter:302 / errorにリダイレクト

  19. 19

    How to use Spring Security 5 and OAuth2 Client to get refresh tokens and make API calls?

  20. 20

    How to use Spring Security 5 and OAuth2 Client to get refresh tokens and make API calls?

  21. 21

    Where is an Example Spring Security OAuth2 Client Configuration using XML for Authorization Code?

  22. 22

    Spring Security - oAuth2 実装のための UserDetailsService?

  23. 23

    Spring Security OAuth2実装で成功したOAuth2認証にCookieを設定する

  24. 24

    spring - oauth2 redirecting to unknown url

  25. 25

    Spring Oauth2 - custom exception handler

  26. 26

    TokenStore MongoDB Spring OAuth2

  27. 27

    Spring Boot 2.0.0 + OAuth2

  28. 28

    Spring WebFlux Kotlin OAuth2 CORS

  29. 29

    Android client for OAuth2 with Spring

ホットタグ

アーカイブ