openstackid/app/libs/OpenId/Models/IOpenIdUser.php
smarcet b52c932636 IDP - User Management
* Added user registration process
* Added user password reset process
* Added user email verification proccess
* update token id to return custom claims
* update access token instrospection to return user custom claims
* Migrated to Doctrine ORM ( from eloquent)
* Added User CRUD
* Added User Groups CRUD
* Refactoring
* Bug Fixing
* added user registration oauth2 endpoint
  POST /api/v1/user-registration-requests

payload

* first_name ( required )
* last_name ( required)
* email ( required )
* country ( optional )

scope

user-registration ( private scope)

Change-Id: I36e8cd4473ccad734565051442e2c6033b204f27
2020-01-23 03:06:05 -03:00

130 lines
2.0 KiB
PHP

<?php namespace OpenId\Models;
/**
* Interface IOpenIdUser
* @package OpenId\Models
*/
interface IOpenIdUser
{
const OpenIdServerAdminGroup = 'openid-server-admins';
/**
* @return bool
*/
public function isOpenIdServerAdmin();
/**
* @return int
*/
public function getId();
/**
* @return string
*/
public function getIdentifier():?string;
/**
* @return string
*/
public function getEmail();
/**
* @return string
*/
public function getFirstName();
/**
* @return string
*/
public function getLastName();
/**
* @return string
*/
public function getFullName();
/**
* @return string
*/
public function getNickName();
/**
* @return string
*/
public function getGender();
/**
* @return string
*/
public function getCountry();
/**
* @return string
*/
public function getStreetAddress();
/**
* @return string
*/
public function getRegion();
/**
* @return string
*/
public function getLocality();
/**
* @return string
*/
public function getPostalCode();
/**
* @return string
*/
public function getFormattedAddress();
public function getLanguage();
public function getDateOfBirth();
/**
* @return bool
*/
public function getShowProfileFullName();
/**
* @return bool
*/
public function getShowProfilePic();
/**
* @return bool
*/
public function getShowProfileBio();
/**
* @return bool
*/
public function getShowProfileEmail();
public function getBio();
public function getPic();
/**
* @param int $n
* @return mixed
*/
public function getLatestNActions(int $n = 10);
public function getTrustedSites();
/**
* @return int
*/
public function getExternalIdentifier();
/**
* @return bool
*/
public function isEmailVerified();
}