[精讚] [會員登入]
409

更新程式環境到wildfly18+openjdk11-phase4: 認證程式更新

認證程式更新

分享此文連結 //n.sfs.tw/14586

分享連結 更新程式環境到wildfly18+openjdk11-phase4: 認證程式更新@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2020-04-22 15:56:20 最後編修
2020-03-25 15:01:28 By jung
 

1. POM更新

POM @cncauthserver&CncResource: cnclibs 1.2.3 & EduDataType 1.0.6.6
POM @xxauth: cnclibs 1.2.3 & EduDataType 1.0.6.6
 
 
2.new package: "relation"@xxauth
new class: "xxRelation.java"@xxauth
new file: "relation.spi.ITSRelation"@META-INF.service package
內容為;
relation.XXRelation
 
在xxauth專案下新增package:relation
新建java class: XXRelation
內容如下
package relation;

import models.edumodel.relations.Relation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import relation.spi.ITSRelation;
import tools.IUniqueIDType;

import java.util.Map;

public class XXRelation implements ITSRelation {
    private static final Logger logger = LoggerFactory.getLogger(MZRelation.class);

    @Override
    public Relation getRelation(Map<IUniqueIDType, String> uniqueIDTypeStringMap) {
        return new Relation();
    }
}
 
 
implement new method@xxauth.java
  doAuthenticatewSeatNo
  doSyncDatawSeatNo
@Override
    public ExchangeDataModelwSeatNo doAuthenticatewSeatNo(String user, String passwd) {
        return null;
    }
 
 
file modified:
1.
implement new method@src/main/java/syncdata/xxsyncdata.java
  doAuthenticatewSeatNo
  doSyncDatawSeatNo
 
    @Override
    public List<ExchangeDataModelwSeatNo> doSyncDatawSeatNo(Map<IUniqueIDType, String> uniqueIDTypeStringMap) {
        return null;
    }
 
CNCAPIwSeatNoResource.java@CncResource
 
  CNCOauthwSeatNoResource.java@CncResource
  xxSyncData.java@xxauth
  xxauth.java@xxauth
  AuthDemo.java@cncauthdemo
  CNCXXAccountSource.java@cncaccountdatasource
  XXDataRequest.java@cncaccountdatasource
 
mongo修改index增加查詢時間檢查
use xxstore
db.authcodestore.createIndex({"created":-1})
db.authcodestore.createIndex({"expires":-1})
 
mongo刪除過多token&authcode紀錄
use xxstore
db.authcodestore.remove({})
db.cnctokenstore.remove({})
 
END

你可能感興趣的文章

更新程式環境到wildfly18+openjdk11-phase3: 伺服器環境升級準備 upgrade jdk and wildfly on server

更新程式取消google recaptcha改用輸入驗證碼 update cnclibs to 0.0.8.6

縣市端新增syncdata spi功能 為了讓部裡主機可以透過OAUTH2流程,呼叫縣市同步SYNCDATA 的API

更新程式環境到wildfly18+openjdk11-phase4: 認證程式更新 認證程式更新

更新程式環境到wildfly18+openjdk11-phase1: upgrade mongodb server 更新程式環境到wildfly18+openjdk11-phase1: upgrade mongodb server to version 3.6

在apache http server停用TLS 1.0/1.1 and SSL 2.0/3.0 How to disable outdated versions of SSL/TLS on Apache

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

JIRA using gmail as smtp outgoing mail sender 如何設定jira使用gmail信箱送信

centos7 apache ssl.conf設定狀況 在apache更新或重啟後可能遇到ssl.conf衝突問題

在debian9使用apt-key add gpg key from ubuntu keyserver

proxmox5.x using duplicati as cloud backup strategy install duplicati program on Proxmox host for remote backup using google drive account

在apache http server停用TLS 1.0/1.1 and SSL 2.0/3.0 How to disable outdated versions of SSL/TLS on Apache