2017/11/06

[工] Dropwizard REST Authentication API

花了兩天研究dropwizard的Authentication功能,網路上的文章和dropwizard的guidline都寫的非常的簡陋,以致於無法看出實做的手法,後來終於找到:

reference:
github: https://github.com/llatinov/sample-dropwizard-rest-stub
blog: https://automationrhapsody.com/implement-secure-api-authentication-http-dropwizard/

直接把source code 匯入到intellij後跑一次才知道原理,也才能做一些變化!
其實我覺得光看文章真的蠻不能理解的....可能是工師師思維沒有想像力 XD
接下來就是把這個驗證的機制搭配OAuth和LDAP自己弄個小的service來實做一下看看結果了


[工][技][dropwizard][REST][microservice]


沒有留言:

張貼留言