from plone import api


def setoAuthTokenFromCASSAMLProperties(event):
    """ This subscriber is responsible for the update of the oauth_token from the CAS
        authentication.
    """
    user = api.user.get(event.properties['username'])
    user.setMemberProperties(mapping=dict(oauth_token=event.properties[
        'oauthToken']))

06d803ccbe313e65584759e0f91decd7fc458f35
<mask token>

<mask token>


def setoAuthTokenFromCASSAMLProperties(event):
    """ This subscriber is responsible for the update of the oauth_token from the CAS
        authentication.
    """
    user = api.user.get(event.properties['username'])
    user.setMemberProperties(mapping=dict(oauth_token=event.properties[
        'oauthToken']))

from plone import api


def setoAuthTokenFromCASSAMLProperties(event):
    """ This subscriber is responsible for the update of the oauth_token from the CAS
        authentication.
    """
    user = api.user.get(event.properties['username'])
    user.setMemberProperties(mapping=dict(oauth_token=event.properties[
        'oauthToken']))
