Skip to content

'org.springframework.security.oauth:spring-security-oauth2' disappeared from 2.0.0 ? Need new example and update documentation. #12537

@ukimpact

Description

@ukimpact

I am trying to follow one of first basic ten examples OAuth2 available for search for spring boot release 2.0.0, it is very confusing. Not to mention that 2 times-referenced 'sample' of auth2 is not standalone project so its gradle build file is not useful to me.

All tutorials include following library which is absent for version 2.0.0 mavenCentral?
org.springframework.security.oauth:spring-security-oauth2

https://spring.io/guides/tutorials/spring-boot-oauth2/ lists:

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
	<groupId>org.springframework.security.oauth</groupId>
	<artifactId>spring-security-oauth2</artifactId>
</dependency>

I can't resolve oauth with 2.0.0 but can resolve with 1.5.10?

my gradle snippet:

repositories {
	mavenCentral()
}


buildscript {
    ext {
        kotlinVersion = '1.2.30'
        springBootVersion = '2.0.0.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
        classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
    }
}


dependencies {
    compile ('org.springframework.boot:spring-boot-starter-security')
    compile('org.springframework.boot:spring-boot-starter-cache')
    compile('org.springframework.boot:spring-boot-starter-thymeleaf')
    compile('org.springframework.boot:spring-boot-starter-web')
    compile('org.springframework.boot:spring-boot-starter-thymeleaf')
    compile('com.fasterxml.jackson.module:jackson-module-kotlin')
    compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
    compile("org.jetbrains.kotlin:kotlin-reflect")
    compile ('org.springframework.security.oauth:spring-security-oauth2') // only this one fails...
    runtime('org.springframework.boot:spring-boot-devtools')
    testCompile('org.springframework.boot:spring-boot-starter-test')
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions