diff --git a/src/main/java/edu/harvard/iq/dataverse/authorization/providers/oauth2/OAuth2TokenData.java b/src/main/java/edu/harvard/iq/dataverse/authorization/providers/oauth2/OAuth2TokenData.java index db29bae92bd..a5ee5ddf537 100644 --- a/src/main/java/edu/harvard/iq/dataverse/authorization/providers/oauth2/OAuth2TokenData.java +++ b/src/main/java/edu/harvard/iq/dataverse/authorization/providers/oauth2/OAuth2TokenData.java @@ -58,9 +58,6 @@ public class OAuth2TokenData implements Serializable { @Column(length = 64) private String refreshToken; - @Column(length = 64) - private String scope; - @Column(length = 32) private String tokenType; @@ -78,7 +75,6 @@ public static OAuth2TokenData from( OAuth2AccessToken accessTokenResponse ) { OAuth2TokenData retVal = new OAuth2TokenData(); retVal.setAccessToken(accessTokenResponse.getAccessToken()); retVal.setRefreshToken( accessTokenResponse.getRefreshToken() ); - retVal.setScope( accessTokenResponse.getScope() ); retVal.setTokenType( accessTokenResponse.getTokenType() ); if ( accessTokenResponse.getExpiresIn() != null ) { retVal.setExpiryDate( new Timestamp( System.currentTimeMillis() + accessTokenResponse.getExpiresIn())); @@ -136,14 +132,6 @@ public void setRefreshToken(String refreshToken) { this.refreshToken = refreshToken; } - public String getScope() { - return scope; - } - - public void setScope(String scope) { - this.scope = scope; - } - public String getTokenType() { return tokenType; } diff --git a/src/main/resources/db/migration/V4.16.0.3__5991-update-scribejava.sql b/src/main/resources/db/migration/V4.16.0.3__5991-update-scribejava.sql new file mode 100644 index 00000000000..6762e1fc076 --- /dev/null +++ b/src/main/resources/db/migration/V4.16.0.3__5991-update-scribejava.sql @@ -0,0 +1 @@ +ALTER TABLE OAuth2TokenData DROP COLUMN IF EXISTS scope; \ No newline at end of file