Project

General

Profile

« Previous | Next » 

Revision 59620

scopes now read from properties + get refresh tokens delets the old ones.

View differences:

springContext-userLoginCore.xml
154 154
                    <bean class="org.mitre.oauth2.model.RegisteredClient">
155 155
                        <property name="clientId" value="${oidc.id}" />
156 156
                        <property name="clientSecret" value="${oidc.secret}" />
157
                        <property name="scope">
158
                            <set value-type="java.lang.String">
159
                                <value>openid</value>
160
                                <value>profile</value>
161
                                <value>email</value>
162
                                <value>eduperson_entitlement</value>
163
                                <value>offline_access</value>
164
                            </set>
165
                        </property>
157
                        <property name="scope" value="#{scopeReader.scopes}"/> <!-- now read from properties file via scopeReader -->
166 158
                        <property name="tokenEndpointAuthMethod" value="SECRET_BASIC" />
167 159
                        <property name="redirectUris">
168 160
                            <set>
......
175 167
        </property>
176 168
    </bean>
177 169

  
170
    <bean class="eu.dnetlib.openaire.user.login.utils.ScopeReader" id="scopeReader">
171
        <constructor-arg value="${scopes}"/>
172
    </bean>
173

  
178 174
    <!--
179 175
      -
180 176
      -	Auth request options service: returns the optional components of the request

Also available in: Unified diff