Token-based authentication in OpenDaylight
OpenDaylight has different techniques to authenticate different operations. Token-based authentication is used in the SDN production environment to control the lifetime of the authenticated operations in OpenDaylight. In this recipe, you will learn how to generate a token that can be used to authenticate OpenDaylight's HTTP requests.
Getting ready
This recipe requires a new OpenDaylight Beryllium distribution.
How to do it...
- Start the OpenDaylight distribution using the
karaf
script. Using this client will give you access to the Karaf CLI:
$ cd distribution-karaf-0.4.1-Beryllium-SR1/ $ ./bin/karaf ________ ________ .__ .__ .__ __ \_____ \ ______ ____ ____ \______ \ _____ ___.__.| | |__| ____ | |___/ |_ / | \\____ \_/ __ \ / \ | | \\__ \< | || | | |/ ___\| | \ __\ / | \ |_> > ___/| | \| ` \/ __ \\___ || |_| / /_/ > Y \ | \_______ / __/ \___ >___| /_______ (____ / ____||____/__\___ /|___| /__| \/|__| \/ \/ \/ \/\/ /_____/ \/ Hit '<tab...