1
0
Fork 0

Update README formatting

This commit is contained in:
Andrew Tomaka 2013-04-21 00:29:57 -04:00
parent 2ac834252e
commit 7cc7882650

View file

@ -8,19 +8,24 @@ devise-kerberos-authenticatable is a Devise exenstion that can be used to authen
###Dependencies ###Dependencies
[timfel-krb5-auth](https://github.com/timfel/krb5-auth) depends on the headers and development libraries for MIT Kerberos. [timfel-krb5-auth](https://github.com/timfel/krb5-auth) depends on the headers and development libraries for MIT Kerberos.
```sudo apt-get install libkrb5-dev``` ```sudo apt-get install libkrb5-dev```
###Server Setup ###Server Setup
Modify your /etc/krb5.conf file as necessary to authenticate against your Kerberos server. Modify your /etc/krb5.conf file as necessary to authenticate against your Kerberos server.
###Rails Setup ###Rails Setup
* Edit config/initializers/devise.rb to use a username instead of email for login. * Edit config/initializers/devise.rb to use a username instead of email for login.
```config.authentication_keys = [ :username ]``` ```config.authentication_keys = [ :username ]```
* Update your Devise model app/models/user.rb * Update your Devise model app/models/user.rb
``` ```
devise :kerberos_authenticatable devise :kerberos_authenticatable
attr_accessible :username attr_accessible :username
``` ```
* Rebuild your Devise views automatically or by hand. * Rebuild your Devise views automatically or by hand.
``` ```
rake generate devise:views rake generate devise:views
``` ```