32], [['redirect_uri'], 'string', 'max' => 1000], [['grant_types'], 'string', 'max' => 100], [['scope'], 'string', 'max' => 2000] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'client_id' => 'Client ID', 'client_secret' => 'Client Secret', 'redirect_uri' => 'Redirect Uri', 'grant_types' => 'Grant Types', 'scope' => 'Scope', 'user_id' => 'User ID', ]; } /** * @return \yii\db\ActiveQuery */ public function getOauthAccessTokens() { return $this->hasMany(OauthAccessTokens::className(), ['client_id' => 'client_id']); } /** * @return \yii\db\ActiveQuery */ public function getOauthAuthorizationCodes() { return $this->hasMany(OauthAuthorizationCodes::className(), ['client_id' => 'client_id']); } /** * @return \yii\db\ActiveQuery */ public function getOauthRefreshTokens() { return $this->hasMany(OauthRefreshTokens::className(), ['client_id' => 'client_id']); } }